Update Dockerfile to pass env variables
All checks were successful
Deploy Yaltopia Tickets Admin / deploy (push) Successful in 21s
All checks were successful
Deploy Yaltopia Tickets Admin / deploy (push) Successful in 21s
This commit is contained in:
parent
7d78a488c1
commit
c7021d8c59
|
|
@ -12,6 +12,13 @@ RUN npm ci
|
||||||
# Copy source code
|
# Copy source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Build-time env (Vite inlines these at build time)
|
||||||
|
ARG VITE_BACKEND_API_URL
|
||||||
|
ARG VITE_ENV=production
|
||||||
|
|
||||||
|
ENV VITE_BACKEND_API_URL=${VITE_BACKEND_API_URL}
|
||||||
|
ENV VITE_ENV=${VITE_ENV}
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
RUN npm run build:prod
|
RUN npm run build:prod
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user