Skip to content

Commit

Permalink
fix: Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Jan 25, 2024
1 parent cd3c348 commit e503aa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# build nginx with only the bare minimum of features or modules
# Note: no need to chain the RUN commands here as it's a builder image and nothing will be kept
FROM alpine:3.18 as nginx-builder
FROM alpine:3 as nginx-builder

ENV NGINX_VERSION=1.24.0
# pin nginx modules versions
Expand Down Expand Up @@ -111,7 +111,7 @@ USER root
RUN make install

# CRONIE BUILDER
FROM alpine:3.18 as cronie-builder
FROM alpine:3 as cronie-builder
ENV CRONIE_VERSION=1.5.7
# install dependencies
RUN apk add --no-cache build-base libc-dev make gcc autoconf automake abuild musl-obstack-dev
Expand All @@ -132,7 +132,7 @@ RUN abuild-keygen -n -a && abuild && find /home/builder/packages -type f -name '
#############################
# ELABFTW + NGINX + PHP-FPM #
#############################
FROM alpine:3.18
FROM alpine:3

# this is versioning for the container image
ENV ELABIMG_VERSION=5.0.0
Expand Down

0 comments on commit e503aa0

Please sign in to comment.