Skip to content

Commit

Permalink
Moves package installation to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
topfunky committed May 24, 2024
1 parent 0d65dd4 commit 0d0044b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
FROM debian:12

WORKDIR /workspaces/learning-sync-and-transcode-music-files

# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Configure apt and install packages
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
&& apt-get -y install git iproute2 procps lsb-release \
&& apt-get -y install git iproute2 procps lsb-release curl build-essential procps file git gcc \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*

RUN .devcontainer/setup.sh
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/topfunky/learning-sync-and-transcode-music-files/HEAD/.devcontainer/setup.sh)"

# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
git config --global --add safe.directory /workspaces/learning-sync-and-transcode-music-files

apt-get update
apt-get install -y build-essential procps file git gcc
# apt-get install -y build-essential procps file git gcc

export NONINTERACTIVE=1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Expand Down

0 comments on commit 0d0044b

Please sign in to comment.