2020-01-28 18:07:50 +00:00
|
|
|
### STAGE 1: Build ###
|
2020-02-01 15:40:34 +00:00
|
|
|
FROM node:alpine AS builder
|
|
|
|
|
2020-01-14 14:35:36 +00:00
|
|
|
RUN mkdir /crc-bpmn
|
|
|
|
WORKDIR /crc-bpmn
|
|
|
|
|
2020-02-01 15:40:34 +00:00
|
|
|
ADD package.json /crc-bpmn/
|
|
|
|
|
|
|
|
COPY . /crc-bpmn/
|
2020-01-28 21:43:38 +00:00
|
|
|
|
2020-02-01 15:40:34 +00:00
|
|
|
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/
|
2020-02-01 15:48:01 +00:00
|
|
|
COPY --from=builder /crc-bpmn/nginx.conf /etc/nginx/conf.d/default.conf
|
2020-02-06 19:45:26 +00:00
|
|
|
|
|
|
|
### STAGE 3: Profit! ###
|