2020-01-28 18:07:50 +00:00
|
|
|
### STAGE 1: Build ###
|
|
|
|
FROM node:12.7-alpine AS build
|
2020-01-14 14:35:36 +00:00
|
|
|
RUN mkdir /crc-bpmn
|
|
|
|
WORKDIR /crc-bpmn
|
2020-01-28 18:07:50 +00:00
|
|
|
COPY package.json ./
|
2020-01-24 11:24:07 +00:00
|
|
|
RUN npm install
|
2020-01-28 18:07:50 +00:00
|
|
|
COPY . .
|
2020-01-28 16:24:03 +00:00
|
|
|
RUN npm run build:staging
|
2020-01-14 14:35:36 +00:00
|
|
|
|
2020-01-28 18:07:50 +00:00
|
|
|
### STAGE 2: Run ###
|
|
|
|
FROM nginx:1.17.1-alpine
|
|
|
|
COPY --from=build /crc-bpmn/dist/cr-connect-bpmn /usr/share/nginx/html
|