2020-01-24 11:24:07 +00:00
|
|
|
FROM ubuntu:18.04
|
2020-01-14 14:35:36 +00:00
|
|
|
|
|
|
|
RUN mkdir /crc-bpmn
|
|
|
|
WORKDIR /crc-bpmn
|
|
|
|
|
|
|
|
ADD package.json /crc-bpmn/
|
|
|
|
|
|
|
|
COPY . /crc-bpmn/
|
2020-01-24 11:24:07 +00:00
|
|
|
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
|
2020-01-14 14:35:36 +00:00
|
|
|
|
2020-01-24 11:24:07 +00:00
|
|
|
#RUN npm cache verify
|
|
|
|
RUN npm install
|
|
|
|
#RUN npm run build:staging
|
|
|
|
RUN npm run build
|
2020-01-14 14:35:36 +00:00
|
|
|
|
2020-01-24 11:24:07 +00:00
|
|
|
#FROM nginx:alpine
|
2020-01-14 14:35:36 +00:00
|
|
|
|
2020-01-24 11:24:07 +00:00
|
|
|
#COPY --from=builder /crc-bpmn/dist/* /usr/share/nginx/html/
|
2020-01-14 14:35:36 +00:00
|
|
|
|
2020-01-24 11:24:07 +00:00
|
|
|
CMD ["npm", "run", "start"]
|