Skip to content

Commit 60a40a0

Browse files
beac0n5snyk-botvsoftco
authored
alpine:3.16 security upgrade (#73)
* fix: docker/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE311-ZLIB-2977081 * fix: docker/Dockerfile-simple to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE311-ZLIB-2977081 --------- Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Vlad Gheorghiu <vsoftco@gmail.com>
1 parent e69a50c commit 60a40a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG LIBOQS_BUILD_DEFINES="-DOQS_DIST_BUILD=ON -DBUILD_SHARED_LIBS=ON -DOQS_USE_O
66
# make build arguments: Adding -j here speeds up build but may tax hardware
77
ARG MAKE_DEFINES="-j 2"
88

9-
FROM alpine:3.11 as intermediate
9+
FROM alpine:3.16 as intermediate
1010
# Take in all global args
1111
ARG LIBOQS_BUILD_DEFINES
1212
ARG MAKE_DEFINES
@@ -38,7 +38,7 @@ RUN apk add automake autoconf && cd /opt/openssl && LDFLAGS="-Wl,-rpath -Wl,/usr
3838
RUN wget https://letsencrypt.org/certs/isrgrootx1.pem
3939

4040
## second stage: Only create minimal image without build tooling and intermediate build results generated above:
41-
FROM alpine:3.11
41+
FROM alpine:3.16
4242

4343
# Get all software packages required for running all components:
4444
RUN apk update && apk upgrade && apk add python3

docker/Dockerfile-simple

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# liboqs build type variant; maximum portability of image; no openssl dependency:
44
ARG LIBOQS_BUILD_DEFINES="-DOQS_DIST_BUILD=ON -DBUILD_SHARED_LIBS=ON -DOQS_USE_OPENSSL=OFF"
55

6-
FROM alpine:3.11 as intermediate
6+
FROM alpine:3.16 as intermediate
77
# Take in all global args
88
ARG LIBOQS_BUILD_DEFINES
99

@@ -26,7 +26,7 @@ WORKDIR /opt/liboqs
2626
RUN mkdir build && cd build && cmake -G"Ninja" .. ${LIBOQS_BUILD_DEFINES} && ninja install
2727

2828
## second stage: Only create minimal image without build tooling and intermediate build results generated above:
29-
FROM alpine:3.11
29+
FROM alpine:3.16
3030

3131
RUN apk update && apk upgrade
3232

0 commit comments

Comments
 (0)