forked from 1001genomes/AraGWAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (22 loc) · 803 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
# Dockerfile to run AraGWAS
FROM python:3
MAINTAINER [email protected]
# add postgres dependencies
#RUN apk add --no-cache postgresql-dev gcc python3-dev musl-dev linux-headers libffi-dev
RUN apt-get update && apt-get install hdf5-helpers
# copy file and install webservice requirements
COPY requirements.txt .
RUN pip install -r requirements.txt
#RUN pip install uWSGI
# pseudo install config file
#RUN mkdir /etc/platinum
#COPY webservice/instance/config.py /etc/platinum/config
# copy webservice code
COPY . /srv/web
WORKDIR /srv/web
COPY web-entrypoint.sh .
RUN chmod 755 web-entrypoint.sh && chmod 755 wait-for-it.sh
RUN addgroup --system aragwas && adduser --system --group aragwas --uid 10372
RUN chown aragwas -R /srv/web/
USER aragwas
ENTRYPOINT /srv/web/web-entrypoint.sh