Skip to content

Commit fa0499e

Browse files
committed
Run 'apt-get update' before install dpkgs
1 parent c7a00d6 commit fa0499e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

{{cookiecutter.git_repo_name}}/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ARG GROUP_ID
88
### install dpkgs
99
COPY dpkg-dependencies.txt /tmp/
1010
# hadolint ignore=SC2046
11-
RUN apt-get install -y --no-install-recommends --allow-unauthenticated $(grep "^[A-Za-z]" /tmp/dpkg-dependencies.txt | perl -nE 'print s/^([^#]+)[ ]+#.*/\1/gr') && \
11+
RUN apt-get update && \
12+
apt-get install -y --no-install-recommends --allow-unauthenticated $(grep "^[A-Za-z]" /tmp/dpkg-dependencies.txt | perl -nE 'print s/^([^#]+)[ ]+#.*/\1/gr') && \
1213
apt-get clean
1314

1415
### create new user account ('docker')

0 commit comments

Comments
 (0)