forked from Open-MBEE/exec-ve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (26 loc) · 899 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
################################################################################
# Dockerfile
#
# Enquier
#
# This is the Dockerfile for View Editor (VE).
# To build the container, run the following command: `docker build -t ve .`
# To run the container, run `docker run -it -p 80:9000 --name ve ve`
#
################################################################################
FROM node:16-alpine as builder
ENV VE_ENV 'example'
WORKDIR /opt/mbee/ve
COPY . /opt/mbee/ve
# Configures git to use https:// instead of git://
RUN git config --global url."https://".insteadOf git://
# Install dependencies
RUN yarn install
# Build App
RUN yarn build
FROM nginx:mainline-alpine as production
COPY --from=builder /opt/mbee/ve/dist /usr/share/nginx/html
COPY ./config/default.nginx.template /etc/nginx/templates/default.conf.template
# Expose ports
EXPOSE ${NGINX_PORT}