Skip to content

Commit 5492479

Browse files
committed
chore/ci: making compose not have 'confidential' arg
1 parent 6eb01c4 commit 5492479

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
*.env
2-
compose.yml

compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+

milk-webview/Containerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
FROM node:lts-alpine as build
22

3-
43
#Container for building
54
WORKDIR /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
811
COPY package*.json ./
912

1013
RUN npm ci --force
1114

1215
COPY . .
1316

14-
RUN npm run build
1517

18+
RUN npm run build
1619

1720
#Creating the other container
1821
FROM nginx

0 commit comments

Comments
 (0)