-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (22 loc) · 1002 Bytes
/
Dockerfile
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
31
32
33
34
35
36
37
38
FROM node:18 as build-stage
# RUN apt-get update && apt-get install -y git
# RUN git clone https://[email protected]/hypersign-protocol/entity-developer-dashboard.git /app
WORKDIR /app
COPY ./package.json .
RUN yarn
COPY . .
ENV VUE_APP_TITLE='__VUE_APP_TITLE__'
ENV VUE_APP_DESC='__VUE_APP_DESC__'
ENV VUE_APP_VERSION='__VUE_APP_VERSION__'
ENV VUE_APP_STUDIO_SERVER_BASE_URL='__VUE_APP_STUDIO_SERVER_BASE_URL__'
ENV VUE_APP_STUDIO_SERVER_BASE_WS='__VUE_APP_STUDIO_SERVER_BASE_WS__'
ENV VUE_APP_NODE_SERVER_BASE_URL='__VUE_APP_NODE_SERVER_BASE_URL__'
ENV VUE_APP_NODE_SERVER_BASE_URL_REST='__VUE_APP_NODE_SERVER_BASE_URL_REST__'
ENV VUE_APP_EXPLORER_BASE_URL='__VUE_APP_EXPLORER_BASE_URL__'
ENV VUE_APP_WEB_WALLET_ADDRESS='__VUE_APP_WEB_WALLET_ADDRESS__'
ENV VUE_APP_ORIGINS='__VUE_APP_ORIGINS__'
RUN yarn build
FROM nginx:latest as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]