Troubleshooting nginx configuration
This commit is contained in:
parent
b21b55c79f
commit
796cfae248
21
Dockerfile
21
Dockerfile
|
@ -1,15 +1,16 @@
|
||||||
### STAGE 1: Build ###
|
### STAGE 1: Build ###
|
||||||
FROM node:12.7-alpine AS build
|
FROM node:alpine AS builder
|
||||||
|
|
||||||
RUN mkdir /crc-bpmn
|
RUN mkdir /crc-bpmn
|
||||||
WORKDIR /crc-bpmn
|
WORKDIR /crc-bpmn
|
||||||
COPY package.json ./
|
|
||||||
RUN npm install
|
ADD package.json /crc-bpmn/
|
||||||
COPY . .
|
|
||||||
RUN npm run build:staging
|
COPY . /crc-bpmn/
|
||||||
|
|
||||||
|
RUN npm install && \
|
||||||
|
npm run build:staging
|
||||||
|
|
||||||
### STAGE 2: Run ###
|
### STAGE 2: Run ###
|
||||||
FROM nginx:1.17.1-alpine
|
FROM nginx:alpine
|
||||||
COPY --from=build /crc-bpmn/dist/cr-connect-bpmn /usr/share/nginx/html
|
COPY --from=builder /crc-bpmn/dist/cr-connect-bpmn /usr/share/nginx/html/
|
||||||
|
|
||||||
# expose ports
|
|
||||||
EXPOSE 80
|
|
||||||
|
|
Loading…
Reference in New Issue