Skip to content

Commit 944289f

Browse files
authored
fix expat security issue (#8495)
1 parent 0a4148f commit 944289f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Some packages are defined here with a hardcoded version to resolve vulnerabilities in the packages coming with
22
# Alpine v3.22.
3-
# TODO: Regularly check in the alpine ruby "3.4.7-alpine3.22" images for its latest upgraded packages so we can remove
3+
# TODO: Regularly check in the alpine ruby "3.4.7-alpine3.23" images for its latest upgraded packages so we can remove
44
# the hardcoded versions below when they have been updated in the alpine ruby image.
55
# To find the current version of each package in the alpine image, search here:
6-
# https://pkgs.alpinelinux.org/packages?name=&branch=v3.22
7-
ARG PROD_PACKAGES="imagemagick libpng=1.6.54-r0 openssl=3.5.5-r0 libjpeg libxml2 libxslt libpq tzdata shared-mime-info postgresql15 vips-poppler vips-magick proj-dev"
6+
# https://pkgs.alpinelinux.org/packages?name=&branch=v3.23
7+
ARG PROD_PACKAGES="imagemagick libpng openssl expat=2.7.4-r0 libjpeg libxml2 libxslt libpq tzdata shared-mime-info postgresql16 vips-poppler vips-magick proj-dev"
88

9-
FROM ruby:3.4.7-alpine3.22 AS builder
9+
FROM ruby:3.4.7-alpine3.23 AS builder
1010

1111
WORKDIR /app
1212

1313
ARG PROD_PACKAGES
14-
ENV DEV_PACKAGES="gcc libc-dev make yaml-dev yarn postgresql15-dev build-base git"
14+
ENV DEV_PACKAGES="gcc libc-dev make yaml-dev yarn postgresql16-dev build-base git"
1515
RUN apk add --no-cache $PROD_PACKAGES $DEV_PACKAGES
1616
RUN echo "Europe/London" > /etc/timezone && \
1717
cp /usr/share/zoneinfo/Europe/London /etc/localtime
@@ -50,7 +50,7 @@ RUN rm -rf node_modules log tmp yarn.lock && \
5050

5151

5252
# this stage reduces the image size.
53-
FROM ruby:3.4.7-alpine3.22 AS production
53+
FROM ruby:3.4.7-alpine3.23 AS production
5454

5555
RUN addgroup -S appgroup -g 20001 && adduser -S appuser -G appgroup -u 10001
5656
WORKDIR /app

0 commit comments

Comments
 (0)