Skip to content

Commit

Permalink
chore(build): bump main Docker image to `nginxinc/nginx-unprivileged:…
Browse files Browse the repository at this point in the history
…alpine3.19-slim`
  • Loading branch information
azasypkin committed May 20, 2024
1 parent 6a99e43 commit f1c5f86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit f1c5f86

Please sign in to comment.