ci: updated Dockerfile

This commit is contained in:
Marvin Zhang
2024-12-11 14:31:03 +08:00
parent 102b327162
commit a39831304c
4 changed files with 6 additions and 4 deletions

View File

@@ -1 +1 @@
VUE_APP_API_BASE_URL=
VITE_APP_API_BASE_URL=

View File

@@ -1,2 +0,0 @@
NODE_ENV='analyze'
VUE_APP_API_BASE_URL=http://localhost:8000

View File

@@ -1 +1 @@
VUE_APP_API_BASE_URL=http://localhost:8000
VITE_APP_API_BASE_URL=http://localhost:8000

View File

@@ -1,6 +1,10 @@
# Build stage
FROM node:20-alpine AS build
# Arguments and environment variables for building packages
ARG VITE_APP_API_BASE_URL=/api
ENV VITE_APP_API_BASE_URL ${VITE_APP_API_BASE_URL}
# Set the working directory in the container
WORKDIR /app