-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile_SUITE
30 lines (20 loc) · 1.02 KB
/
Dockerfile_SUITE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG BUILD_ENV="build:dev"
ARG EXPLORER_BRANCH=suite
ARG WALLET_BRANCH=suite
ARG VOTING_BRANCH=suite
FROM node:16 as stage-suite
ARG BUILD_ENV
WORKDIR /app/camino-suite
COPY ./ /app/camino-suite/
RUN yarn install
RUN yarn $BUILD_ENV
FROM europe-west3-docker.pkg.dev/pwk-c4t-dev/camino-suite-apps/camino-suite-explorer:$EXPLORER_BRANCH as stage-explorer
FROM europe-west3-docker.pkg.dev/pwk-c4t-dev/camino-suite-apps/camino-suite-wallet:$WALLET_BRANCH as stage-wallet
FROM europe-west3-docker.pkg.dev/pwk-c4t-dev/camino-suite-apps/camino-suite-voting:$VOTING_BRANCH as stage-voting
FROM nginx:1.18
COPY --from=stage-suite /app/camino-suite/dist/ /usr/share/nginx/html
COPY --from=stage-explorer /app/camino-block-explorer/dist/ /usr/share/nginx/html/explorer
COPY --from=stage-wallet /app/camino-wallet/dist/ /usr/share/nginx/html/wallet
COPY --from=stage-voting /app/camino-suite-voting/dist/ /usr/share/nginx/html/dac
# Copy the default nginx.conf provided by tiangolo/node-frontend
COPY ./nginx.conf /etc/nginx/conf.d/default.conf