forked from elixir-cloud-aai/proTES
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (38 loc) · 1.49 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
40
41
42
43
44
45
46
##### BASE IMAGE #####
FROM python:3.6-slim-stretch
##### METADATA #####
LABEL base.image="python:3.6-slim-stretch"
LABEL version="1.1"
LABEL software="proTES"
LABEL software.version="0.1.0"
LABEL software.description="Flask microservice implementing the Global Alliance for Genomics and Health (GA4GH) Task Execution Service (TES) API specification as a proxy for task distribution."
LABEL software.website="https://github.com/elixir-europe/proTES"
LABEL software.documentation="https://github.com/elixir-europe/proTES"
LABEL software.license="https://github.com/elixir-europe/proTES/blob/master/LICENSE"
LABEL software.tags="General"
LABEL maintainer="[email protected]"
LABEL maintainer.organisation="Biozentrum, University of Basel"
LABEL maintainer.location="Klingelbergstrasse 50/70, CH-4056 Basel, Switzerland"
LABEL maintainer.lab="ELIXIR Cloud & AAI"
LABEL maintainer.license="https://spdx.org/licenses/Apache-2.0"
# Python UserID workaround for OpenShift/K8S
ENV LOGNAME=ipython
ENV USER=ipython
# Install general dependencies
RUN apt-get update && apt-get install -y nodejs openssl git build-essential python3-dev
## Set working directory
WORKDIR /app
## Copy Python requirements
COPY ./requirements.txt /app/requirements.txt
## Install Python dependencies
RUN cd /app \
&& pip install -r requirements.txt \
# && cd /app/src/testribute \
# && python setup.py develop \
&& cd /
## Copy remaining app files
COPY ./ /app
## Install app
RUN cd /app \
&& python setup.py develop \
&& cd /