Skip to content

Commit

Permalink
verify_packages in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
plowsof committed Sep 30, 2024
1 parent e72611e commit 1794472
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Dockerfile.linux
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#todo pin hash of shared_functions.sh

# Stage 1: Confirm provided deb md5sums
FROM ubuntu:16.04@sha256:1f1a2d56de1d604801a9671f301190704c25d604a416f59e03c04f5c6ffee0d6 as checkaptdebs

ENV SOURCE_DATE_EPOCH=1397818193

COPY shared_functions.sh shared_functions.sh
RUN chmod +x shared_functions.sh

# Single CMD with all required commands
RUN /bin/bash -c "source shared_functions.sh && check_debs" #todo: improve function name

# Stage 1: Confirm provided deb md5sums
FROM ubuntu:16.04@sha256:1f1a2d56de1d604801a9671f301190704c25d604a416f59e03c04f5c6ffee0d6 as verifypackages

Expand All @@ -12,7 +23,7 @@ COPY shared_functions.sh shared_functions.sh
RUN chmod +x shared_functions.sh

# Single CMD with all required commands
RUN /bin/bash -c "source shared_functions.sh && check_debs" #todo: improve function name
RUN /bin/bash -c "source shared_functions.sh && verify_packages" #todo: improve function name

# Stage 2: Downloader
FROM ubuntu:16.04@sha256:1f1a2d56de1d604801a9671f301190704c25d604a416f59e03c04f5c6ffee0d6 as downloader
Expand Down

0 comments on commit 1794472

Please sign in to comment.