chore: add .env.production and simplify Dockerfile

Bake VITE_DIRECTUS_URL into production build via .env.production
so no Coolify build-arg configuration is needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-14 22:19:15 +02:00
parent a708152fc1
commit 0730fe6e8e
2 changed files with 1 additions and 4 deletions

1
.env.production Normal file
View File

@@ -0,0 +1 @@
VITE_DIRECTUS_URL=https://db.hejyou.com

View File

@@ -5,10 +5,6 @@ COPY package*.json ./
RUN npm ci
COPY . .
ARG VITE_DIRECTUS_URL
ENV VITE_DIRECTUS_URL=$VITE_DIRECTUS_URL
RUN npm run build
FROM nginx:alpine