chore: Dockerfile warnings

This commit is contained in:
ShareVB committed 2026-04-19 11:34:01 +02:00
1 parent 8af95df0aa
commit ec434cf673
1 file changed
+4 -4
+4 -4
View File
@@ -1,8 +1,8 @@
# build stage
FROM --platform=$BUILDPLATFORM node:lts-alpine AS build-stage
# Set environment variables for non-interactive npm installs
ENV NPM_CONFIG_LOGLEVEL warn
ENV CI true
ENV NPM_CONFIG_LOGLEVEL=warn
ENV CI=true
RUN apk add --update python3 make g++\
&& rm -rf /var/cache/apk/*
@@ -13,12 +13,12 @@ RUN npm install -g pnpm && pnpm i --ignore-scripts --frozen-lockfile
COPY . .
ARG BASE_URL
ENV BASE_URL=${BASE_URL}
ENV VITE_VERCEL_ENV production
ENV VITE_VERCEL_ENV=production
RUN pnpm build
# production stage
FROM nginxinc/nginx-unprivileged:stable-alpine AS production-stage
ENV VITE_VERCEL_ENV production
ENV VITE_VERCEL_ENV=production
ARG BASE_URL
ENV BASE_URL=${BASE_URL}
COPY --from=build-stage /app/dist /usr/share/nginx/html