cr-connect-bpmn/Dockerfile

18 lines
372 B
Docker
Raw Normal View History

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