Skip to content

Commit

Permalink
Run 'apt-get update' before install dpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbugyi200 committed Mar 17, 2024
1 parent c7a00d6 commit fa0499e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion {{cookiecutter.git_repo_name}}/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ ARG GROUP_ID
### install dpkgs
COPY dpkg-dependencies.txt /tmp/
# hadolint ignore=SC2046
RUN apt-get install -y --no-install-recommends --allow-unauthenticated $(grep "^[A-Za-z]" /tmp/dpkg-dependencies.txt | perl -nE 'print s/^([^#]+)[ ]+#.*/\1/gr') && \
RUN apt-get update && \
apt-get install -y --no-install-recommends --allow-unauthenticated $(grep "^[A-Za-z]" /tmp/dpkg-dependencies.txt | perl -nE 'print s/^([^#]+)[ ]+#.*/\1/gr') && \
apt-get clean

### create new user account ('docker')
Expand Down

0 comments on commit fa0499e

Please sign in to comment.