-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
23 lines (22 loc) · 933 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
FROM python:3.8.3-slim-buster AS builder
WORKDIR /root
RUN apt-get update && \
apt-get install -y --no-install-recommends git=1:2.* && \
pip install awscli==1.18.91 boto3==1.14.14 pyyaml==5.3.1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
git clone --depth=1 -b v0.0.19 https://github.com/aokad/ecsub.git && \
rm -rf /root/ecsub/.git
FROM python:3.8.3-slim-buster AS genomon_pipeline_cloud
LABEL maintainer="aokad <[email protected]>"
COPY --from=builder /usr/local/bin /usr/local/bin
COPY --from=builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
COPY --from=builder /root/ecsub /root/ecsub
WORKDIR /root/ecsub
RUN python setup.py build install
WORKDIR /root/genomon_pipeline_cloud
COPY . /root/genomon_pipeline_cloud
RUN python setup.py build install
WORKDIR /root
RUN rm -rf /root/ecsub /root/genomon_pipeline_cloud
ENTRYPOINT ["genomon_pipeline_cloud", "--engine", "ecsub"]