Skip to content

Commit

Permalink
copy env
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Aug 8, 2024
1 parent 31f30be commit 69e998d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion nest2dvue/.env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

VITE_API_URL=https://new.nest2d.online/api
8 changes: 3 additions & 5 deletions nest2dvue/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 69e998d

Please sign in to comment.