summaryrefslogtreecommitdiff
path: root/OpenSSL
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-02-12 23:56:29 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-02-12 23:56:29 +0100
commit452fe86288fa5ad396cac6af84e8fc7a680b15d7 (patch)
tree003dfad134d7dbd6c4bcd74442e1fcc79f015e57 /OpenSSL
parent8c104a497d9dee7e65aec260748f2e265138555c (diff)
downloadspm-packages-452fe86288fa5ad396cac6af84e8fc7a680b15d7.tar.gz
Use scratch on final step
This reduce the final image size significantly.
Diffstat (limited to 'OpenSSL')
-rw-r--r--OpenSSL/3.1.1-minimal/Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSSL/3.1.1-minimal/Dockerfile b/OpenSSL/3.1.1-minimal/Dockerfile
index b99eb8d..770ebc9 100644
--- a/OpenSSL/3.1.1-minimal/Dockerfile
+++ b/OpenSSL/3.1.1-minimal/Dockerfile
@@ -1,4 +1,4 @@
-FROM alpine
+FROM alpine as base
RUN apk update && apk add \
git \
make \
@@ -17,3 +17,5 @@ RUN ./config -ffunction-sections -fdata-sections \
RUN make -j$(nproc --all)
RUN make test
RUN make install
+FROM scratch
+COPY --from=base /opt/spm/openssl-3.1.1 /opt/spm/openssl-3.1.1