mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 14:01:42 +03:00
chore: Dockerfile warnings
This commit is contained in:
1 parent
8af95df0aa
commit
ec434cf673
1 file changed
+4
-4
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user