cr-connect-bpmn/Dockerfile

18 lines
372 B
Docker
Raw Normal View History

### STAGE 1: Build ###
2020-02-01 10:40:34 -05:00
FROM node:alpine AS builder
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