From 69e998d2a13890ca57214da323de48872a48665f Mon Sep 17 00:00:00 2001 From: vovastelmashchuk Date: Thu, 8 Aug 2024 18:10:46 +0300 Subject: [PATCH] copy env --- nest2dvue/.env.production | 1 - nest2dvue/Dockerfile | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/nest2dvue/.env.production b/nest2dvue/.env.production index a95d248..27b3e2b 100644 --- a/nest2dvue/.env.production +++ b/nest2dvue/.env.production @@ -1,2 +1 @@ - VITE_API_URL=https://new.nest2d.online/api diff --git a/nest2dvue/Dockerfile b/nest2dvue/Dockerfile index 1f243a5..300954a 100644 --- a/nest2dvue/Dockerfile +++ b/nest2dvue/Dockerfile @@ -1,14 +1,12 @@ - # build stage FROM node:lts-alpine as build-stage WORKDIR /app COPY package*.json ./ RUN npm install COPY . . - -# Pass build-time variables -ARG VITE_API_URL -ENV VITE_API_URL=${VITE_API_URL} +## Copy the .env and .env.production files +COPY .env .env +COPY .env.production .env.production RUN npm run build