Last active
December 16, 2020 15:39
-
-
Save jac18281828/eaf5fd59f649178bdafa932a7ed639d1 to your computer and use it in GitHub Desktop.
example Dockerfile to reproduce a bug in https://gist.github.com/dawidpogorzelski/fb28b6ac7d92a7c667af#gistcomment-3562699
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:10 AS builder | |
RUN apt update && \ | |
apt -y install build-essential gcc python3 curl openssl | |
WORKDIR /sha256 | |
RUN curl 'https://gist.githubusercontent.com/dawidpogorzelski/fb28b6ac7d92a7c667af/raw/82b33515ead66303cca251ab950e682a72e81ca0/sha256.c' > sha256.c | |
RUN gcc -o sha256 -O2 sha256.c | |
RUN openssl dgst -sha256 sha256 | awk '{print $NF}' - | |
RUN cat sha256 | ./sha256 |
Author
jac18281828
commented
Dec 16, 2020
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment