Skip to content

Commit

Permalink
fix: Do not pass system dependencies as ARG
Browse files Browse the repository at this point in the history
Hard code system dependencies into Dockerfile to avoid changing during
build process.
  • Loading branch information
AlexAxthelm committed Nov 16, 2023
1 parent 167bf71 commit feb2556
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ ARG DEBIAN_FRONTEND="noninteractive"
ARG DEBCONF_NOWARNINGS="yes"

# install system dependencies
ARG SYS_DEPS="\
git \
libcurl4-openssl-dev \
libssl-dev \
openssh-client \
wget \
"
RUN apt-get update \
&& apt-get install -y --no-install-recommends $SYS_DEPS \
&& apt-get install -y --no-install-recommends \
git \
libcurl4-openssl-dev \
libssl-dev \
openssh-client \
wget \
&& chmod -R a+rwX /root \
&& rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit feb2556

Please sign in to comment.