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