We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nginxinc/nginx-unprivileged:alpine3.19-slim
1 parent 6a99e43 commit f1c5f86Copy full SHA for f1c5f86
1 file changed
Dockerfile
@@ -2,11 +2,13 @@
2
3
FROM --platform=$BUILDPLATFORM node:20-alpine3.19 as UI_BUILDER
4
WORKDIR /app
5
+# See, https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#node-gyp-alpine
6
+RUN apk add --no-cache python3 make g++
7
COPY ["./*.json", "./.parcelrc", "./"]
8
RUN --mount=type=cache,target=/app/npm/cache set -x && npm ci --cache /app/npm/cache
9
COPY ["./src", "./src"]
10
RUN set -x && npm run build
11
-FROM nginxinc/nginx-unprivileged:alpine3.18-slim
12
+FROM nginxinc/nginx-unprivileged:alpine3.19-slim
13
COPY --from=UI_BUILDER ["/app/dist/", "/usr/share/nginx/html/"]
14
COPY ["./config/nginx.conf", "/etc/nginx/conf.d/default.conf"]
0 commit comments