generated from yxtay/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
executable file
·40 lines (31 loc) · 1.5 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
################## Base Image ##########
ARG PYTHON_VERSION="3.9.7"
FROM --platform=linux/amd64 python:${PYTHON_VERSION}
################## ARGUMENTS/Environments ##########
ARG BUILD_DATE
ARG BUILD_VERSION
ARG LICENSE="Apache-2.0"
ARG POSTPROCESSING_VARIANT_CALLS_VERSION
ARG VCS_REF
################## METADATA ########################
LABEL org.opencontainers.image.vendor="MSKCC"
LABEL org.opencontainers.image.authors="Eric Buehlere ([email protected])"
LABEL org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.version=${BUILD_VERSION} \
org.opencontainers.image.licenses=${LICENSE} \
org.opencontainers.image.version.pvs=${POSTPROCESSING_VARIANT_CALLS_VERSION} \
org.opencontainers.image.source.pv="https://pypi.org/project/postprocessing_variant_calls" \
org.opencontainers.image.vcs-url="https://github.com/msk-access/postprocessing_variant_calls.git" \
org.opencontainers.image.vcs-ref=${VCS_REF}
LABEL org.opencontainers.image.description="This container uses python3.9.7 as the base image to build \
PostProcessing Varaint Calls version ${POSTPROCESSING_VARIANT_CALLS_VERSION}"
################## INSTALL ##########################
WORKDIR /app
ADD . /app
# install postprocessing_variant_calls
RUN apt-get update && apt-get install --no-install-recommends -y gcc g++ zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& make deps-install \
&& poetry build \
&& pip install dist/postprocessing_variant_calls-*-py3-none-any.whl