diff --git a/Dockerfile b/Dockerfile index 0b4aeb1..34df821 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]