Skip to content

Commit 2f4fa7f

Browse files
authored
Update Dockerfile (#127)
1 parent 7737696 commit 2f4fa7f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ ARG COMPILER_NIX_NAME="ghc961"
77
ARG MINIMAL="true"
88
ARG IOG="false"
99

10-
RUN apt-get update \
11-
&& yes | apt-get install curl git jq nix zstd \
10+
RUN DEBIAN_FRONTEND=noninteractive \
11+
&& apt-get update \
12+
&& apt-get -y install curl git jq nix zstd \
1213
&& curl -L https://raw.githubusercontent.com/input-output-hk/actions/latest/devx/support/fetch-docker.sh -o fetch-docker.sh \
1314
&& chmod +x fetch-docker.sh \
1415
&& SUFFIX='' \
1516
&& if [ "$MINIMAL" = "true" ]; then SUFFIX="${SUFFIX}-minimal"; fi \
1617
&& if [ "$IOG" = "true" ]; then SUFFIX="${SUFFIX}-iog"; fi \
1718
&& ./fetch-docker.sh input-output-hk/devx $PLATFORM.$COMPILER_NIX_NAME$TARGET_PLATFORM${SUFFIX}-env | zstd -d | nix-store --import | tee store-paths.txt \
18-
&& yes | apt-get remove curl jq nix zstd \
19-
&& yes | apt-get autoremove \
20-
&& yes | apt-get autoclean
19+
&& apt-get -y remove curl git jq nix zstd \
20+
&& apt-get -y autoremove \
21+
&& apt-get -y autoclean
2122

2223
# `tail -n 2 X | head -n 1` seems a bit fragile way to get `ghc8107-iog-env.sh` derivation path ...
2324
RUN echo "source $(tail -n 2 store-paths.txt | head -n 1)" >> $HOME/.bashrc

0 commit comments

Comments
 (0)