mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-03 20:34:07 +00:00
Merge pull request #1 from sartography/fred/get-container-working
reworks Dockerfile
This commit is contained in:
commit
8556587dc5
19
Dockerfile
19
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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user