forked from belowlab/ldsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
33 lines (24 loc) · 753 Bytes
/
dockerfile
File metadata and controls
33 lines (24 loc) · 753 Bytes
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
# syntax=docker/dockerfile:1
FROM debian:bullseye-slim AS build-container
WORKDIR /app
RUN apt-get update \
&& apt install -y python3-pip git \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml README.md pdm.lock LICENSE simulate.py /app/
COPY ./src /app/src
COPY ./tests /app/tests
# Install pdm
RUN pip install -U pdm
# disable update check
ENV PDM_CHECK_UPDATE=false
# Install all the dependencies
RUN pdm install --check --prod --no-editable
RUN pdm simulate
RUN pdm test
FROM debian:bullseye-slim AS app-container
RUN apt-get update \
&& apt install -y bedtools python3-pip \
&& rm -rf /var/lib/apt/lists/*
# retrieve packages from build stage
COPY --from=build-container /app/.venv/ /app/.venv
ENV PATH="/app/.venv/bin:$PATH"