forked from biowonks/projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 860 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 860 Bytes
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
FROM mhart/alpine-node:14.15.5
ARG GIT_HASH
LABEL BioWonks <[email protected]>
LABEL GIT_HASH=$GIT_HASH
RUN addgroup biowonks && \
adduser -S -G biowonks -s /bin/false biowonks && \
echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
apk --update --no-cache add git bash build-base openssl postgresql-client python && \
mkdir /app
ENV HOME=/app
ENV NODE_ENV=production
COPY . /app
WORKDIR /app/mist-api
RUN chown -R biowonks:biowonks /app
USER biowonks
# Because building the docs relies on imports from core-lib,
# seqdepot-lib, and mist-lib, the following hack ensures all
# those packages are present before attempting the build.
# Definitely not ideal.
RUN cd /app/core-lib && yarn && \
cd /app/seqdepot-lib && yarn && \
cd /app/mist-lib && yarn && \
cd /app/mist-api && yarn
CMD ["yarn", "start"]