-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
29 lines (23 loc) · 972 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM node:18.19.0-bookworm
# Install app dependencies
RUN apt-get update && apt-get install -y libxkbfile-dev libsecret-1-dev openjdk-17-jre
WORKDIR /home/node/app
ENV PUPPETEER_SKIP_DOWNLOAD=true
# Create app directory
COPY open-bpmn.glsp-client/ ./open-bpmn.glsp-client/
# Build GLSP Client part
WORKDIR /home/node/app/open-bpmn.glsp-client
RUN yarn install
# Copy GLSP Server part
WORKDIR /home/node/app
COPY scripts/launch-docker-container.sh ./
COPY open-bpmn.glsp-server/target/open-bpmn.server-*-glsp.jar ./open-bpmn.glsp-server/target/
RUN rm -r ./open-bpmn.glsp-client/workspace/dev
WORKDIR /home/node/app/open-bpmn.glsp-client
ENV HOME=/home/node
RUN chown -R node:node $HOME/app/
USER node
EXPOSE 3000
#ENTRYPOINT [ "yarn start --root-dir=./open-bpmn.glsp-client/workspace" ]
#ENTRYPOINT [ "yarn start:external --hostname=0.0.0.0 --root-dir=/home/node/app/open-bpmn.glsp-client/workspace/demo" ]
ENTRYPOINT [ "/home/node/app/launch-docker-container.sh" ]