-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (31 loc) · 941 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
30
31
32
33
34
35
36
37
38
FROM node:19-alpine
# # Install cwltool
# RUN apk add --update \
# libc-dev \
# gcc \
# python3-dev \
# py3-pip \
# build-base \
# linux-headers
# RUN pip install cwltool
# # Install docker client
# ARG DOCKER_CLI_VERSION="20.10.21"
# ENV DOWNLOAD_URL="https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_CLI_VERSION.tgz"
# RUN apk --no-cache add curl \
# && curl -L $DOWNLOAD_URL | tar -xz docker \
# && mv docker/docker /usr/local/bin/docker
# Install ensemble manager
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
COPY package*.json ./
RUN npm install
COPY --chown=node:node . .
RUN mkdir -p /data && chown -R node:node /data
RUN apk add --no-cache tini
ENTRYPOINT ["/sbin/tini", "--"]
# Build ensemble manager
USER node
RUN NODE_OPTIONS=--openssl-legacy-provider npm run build
# Start ensemble manager
EXPOSE 3000
CMD [ "npm", "start" ]