mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-01-24 07:39:32 +00:00
I wasn't able to get the container to build with the Dockerfile as it was. though the two FROMs were super-cool (and not something I knew was possible), it seemed like there was some piece of that puzzle missing and I wasn't able to figure out what in a reasonable amount of time. So I've switched to an approach of using an ubuntu base on which I'm installing node and, later, nginx. (alpine images are cool, but while developing it can be handy to have good ol ubuntu...it's not bad to switch later if you really need to trim things down)
This commit is contained in:
parent
69af10caf2
commit
dea936a986
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