From f1c5f86c1823bae0fb8b4d8b9b25bb20eaa59c09 Mon Sep 17 00:00:00 2001 From: Aleh Zasypkin <aleh.zasypkin@gmail.com> Date: Mon, 20 May 2024 15:38:55 +0200 Subject: [PATCH] chore(build): bump main Docker image to `nginxinc/nginx-unprivileged:alpine3.19-slim` --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 51b6024..3109287 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,13 @@ FROM --platform=$BUILDPLATFORM node:20-alpine3.19 as UI_BUILDER WORKDIR /app +# See, https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#node-gyp-alpine +RUN apk add --no-cache python3 make g++ COPY ["./*.json", "./.parcelrc", "./"] RUN --mount=type=cache,target=/app/npm/cache set -x && npm ci --cache /app/npm/cache COPY ["./src", "./src"] RUN set -x && npm run build -FROM nginxinc/nginx-unprivileged:alpine3.18-slim +FROM nginxinc/nginx-unprivileged:alpine3.19-slim COPY --from=UI_BUILDER ["/app/dist/", "/usr/share/nginx/html/"] COPY ["./config/nginx.conf", "/etc/nginx/conf.d/default.conf"]