File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 11* .env
2- compose.yml
Original file line number Diff line number Diff line change 1+ services :
2+ backend :
3+ build : ./milk-backend
4+ ports :
5+ - " ${BACKEND_PORT}:${BACKEND_PORT}"
6+ env_file :
7+ - .env
8+ webview :
9+ build :
10+ context : ./milk-webview
11+ args :
12+ VITE_BACKEND_URL : " ${VITE_BACKEND_URL}"
13+ ports :
14+ - " ${WEBVIEW_PORT}:${WEBVIEW_PORT}"
15+ depends_on :
16+ - backend
17+
Original file line number Diff line number Diff line change 11FROM node:lts-alpine as build
22
3-
43# Container for building
54WORKDIR /milk-webview-dir
65
6+ ARG VITE_BACKEND_URL
7+
8+ RUN echo VITE_BACKEND_URL=$VITE_BACKEND_URL > /milk-webview-dir/.env
9+
710# Creating build
811COPY package*.json ./
912
1013RUN npm ci --force
1114
1215COPY . .
1316
14- RUN npm run build
1517
18+ RUN npm run build
1619
1720# Creating the other container
1821FROM nginx
You can’t perform that action at this time.
0 commit comments