Skip to content

Commit

Permalink
Make alpine version an ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbozarth committed Sep 25, 2024
1 parent 41d1343 commit 75695e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions curl/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Multi-stage build: First the full builder image:

# define the alpine image version to use
ARG ALPINE_VERSION=3.20

# define the openssl tag to be used
ARG OPENSSL_TAG=openssl-3.3.2

Expand Down Expand Up @@ -28,7 +31,7 @@ ARG DEFAULT_GROUPS="x25519:x448:kyber512:p256_kyber512:kyber768:p384_kyber768:ky
ARG MAKE_DEFINES="-j 4"


FROM alpine:3.20 as intermediate
FROM alpine:${ALPINE_VERSION} as intermediate
# Take in all global args
ARG OPENSSL_TAG
ARG LIBOQS_TAG
Expand Down Expand Up @@ -119,7 +122,7 @@ COPY serverstart.sh ${INSTALLDIR}/bin
CMD ["serverstart.sh"]

## second stage: Only create minimal image without build tooling and intermediate build results generated above:
FROM alpine:3.20 as dev
FROM alpine:${ALPINE_VERSION} as dev
# Take in all global args
ARG INSTALLDIR
ARG SIG_ALG
Expand Down

0 comments on commit 75695e7

Please sign in to comment.