-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
39 lines (28 loc) · 1.13 KB
/
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
39
FROM node:14-alpine as angular-builder
LABEL maintainer="NMDP Bioinformatics"
COPY webapp/package.json webapp/package-lock.json ./
RUN npm ci && mkdir /ng-app
WORKDIR /ng-app
COPY ./webapp/ .
RUN npm install -g @angular/cli && npm install
ARG CONFIGURATION=production
RUN npm run ng build -- --configuration=$CONFIGURATION
# Build TCE Prediction Tool Image
FROM nmdpbioinformatics/dpb1-prediction-base-image:0.0.4
LABEL maintainer="nmdp-bioinformatics"
# USER dpb1
COPY dpb1 /home/dpb1/dpb1
COPY server.py /home/dpb1/server.py
COPY config.py /home/dpb1/config.py
COPY wsgi.py /home/dpb1/wsgi.py
COPY --from=angular-builder ./ng-app/dist/dpb1-pred-ui-tool /usr/share/nginx/html
COPY webapp/nginx-conf/default.conf /etc/nginx/sites-enabled/default
COPY docker-entrypoint-tce-app.sh /usr/local/bin/
# Deployed Environment. Used in config.py
ENV FLASK_ENV development
# Webserver worker processes: A positive integer generally in the 2-4 x $(NUM_CORES) range.
# Each process will take the same amount of memory
ENV WORKERS 1
# 1 sets the buffered to go to stdout
ENV PYTHONUNBUFFERED 1
ENTRYPOINT [ "/usr/local/bin/docker-entrypoint-tce-app.sh" ]