From 0730fe6e8e8698b599c9bdfcc51f45ecbb9f6d37 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 14 May 2026 22:19:15 +0200 Subject: [PATCH] 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 --- .env.production | 1 + Dockerfile | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..e5edbbb --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_DIRECTUS_URL=https://db.hejyou.com diff --git a/Dockerfile b/Dockerfile index e3139e1..8b6b294 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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