Merge pull request #1 from sartography/fred/get-container-working

reworks Dockerfile
This commit is contained in:
Aaron Louie 2020-01-28 11:07:00 -05:00 committed by GitHub
commit 8556587dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
FROM node:alpine AS builder
FROM ubuntu:18.04
RUN mkdir /crc-bpmn
WORKDIR /crc-bpmn
@ -6,11 +6,20 @@ WORKDIR /crc-bpmn
ADD package.json /crc-bpmn/
COPY . /crc-bpmn/
RUN apt-get -y update
RUN apt-get -y install curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
#RUN sudo apt-get install -y nodejs
RUN apt-get -y update
RUN apt-get -y install nodejs build-essential
RUN npm install && \
npm run build:staging
#RUN npm cache verify
RUN npm install
#RUN npm run build:staging
RUN npm run build
FROM nginx:alpine
#FROM nginx:alpine
COPY --from=builder /crc-bpmn/dist/* /usr/share/nginx/html/
#COPY --from=builder /crc-bpmn/dist/* /usr/share/nginx/html/
CMD ["npm", "run", "start"]