From 456fb4be86004bc71c4a82c79cc8b7f040100283 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 11 Dec 2024 14:31:03 +0800 Subject: [PATCH] ci: updated Dockerfile --- frontend/.env | 2 +- frontend/.env.analyze | 2 -- frontend/.env.development | 2 +- frontend/Dockerfile | 4 ++++ 4 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 frontend/.env.analyze diff --git a/frontend/.env b/frontend/.env index 28381cc1..f0fa7c0a 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1 +1 @@ -VUE_APP_API_BASE_URL= +VITE_APP_API_BASE_URL= diff --git a/frontend/.env.analyze b/frontend/.env.analyze deleted file mode 100644 index 65454e70..00000000 --- a/frontend/.env.analyze +++ /dev/null @@ -1,2 +0,0 @@ -NODE_ENV='analyze' -VUE_APP_API_BASE_URL=http://localhost:8000 diff --git a/frontend/.env.development b/frontend/.env.development index 3d2c6fb9..dd2e38d0 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1 +1 @@ -VUE_APP_API_BASE_URL=http://localhost:8000 +VITE_APP_API_BASE_URL=http://localhost:8000 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index cf9c67b6..84cefded 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -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