18 lines
372 B
Docker
18 lines
372 B
Docker
### STAGE 1: Build ###
|
|
FROM node:alpine AS builder
|
|
|
|
RUN mkdir /crc-bpmn
|
|
WORKDIR /crc-bpmn
|
|
|
|
ADD package.json /crc-bpmn/
|
|
|
|
COPY . /crc-bpmn/
|
|
|
|
RUN npm install && \
|
|
npm run build:staging
|
|
|
|
### STAGE 2: Run ###
|
|
FROM nginx:alpine
|
|
COPY --from=builder /crc-bpmn/dist/cr-connect-bpmn /usr/share/nginx/html/
|
|
COPY --from=builder /crc-bpmn/nginx.conf /etc/nginx/conf.d/default.conf
|