forked from sapporo-wes/sapporo-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-dev
More file actions
45 lines (37 loc) · 1.43 KB
/
Dockerfile-dev
File metadata and controls
45 lines (37 loc) · 1.43 KB
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
FROM python:3.8.18-bullseye
LABEL org.opencontainers.image.url="https://github.com/RCOSDP/CS-sapporo-service"
LABEL org.opencontainers.image.source="https://github.com/RCOSDP/CS-sapporo-service/blob/main/Dockerfile"
LABEL org.opencontainers.image.version="1.6.1"
LABEL org.opencontainers.image.description="sapporo-service is a standard implementation conforming to the Global Alliance for Genomics and Health (GA4GH) Workflow Execution Service (WES) API specification."
LABEL org.opencontainers.image.licenses="Apache2.0"
RUN apt update && \
apt install -y --no-install-recommends \
curl \
git \
jq \
libmagic-dev \
libxml2 \
tini && \
apt clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN curl -O https://download.docker.com/linux/static/stable/$(uname -m)/docker-24.0.7.tgz && \
tar -xzf docker-24.0.7.tgz && \
mv docker/* /usr/bin/ && \
rm -rf docker docker-24.0.7.tgz
WORKDIR /app
COPY . .
RUN python3 -m pip install --no-cache-dir --progress-bar off -U pip setuptools wheel && \
python3 -m pip install --no-cache-dir --progress-bar off -e .[tests]
WORKDIR /tmp
RUN git clone --depth 1 https://github.com/RCOSDP/rdmclient.git && \
cd rdmclient && \
python3 -m pip install --no-cache-dir --progress-bar off . && \
cd .. && \
rm -rf rdmclient
ENV SAPPORO_HOST 0.0.0.0
ENV SAPPORO_PORT 1122
ENV SAPPORO_DEBUG True
EXPOSE 1122
ENTRYPOINT ["tini", "--"]
CMD ["sleep", "infinity"]