-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 864 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (25 loc) · 864 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
FROM python:3.11-slim-bookworm AS builder
ENV DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
VIRTUAL_ENV=/opt/venv \
PATH=/opt/venv/bin:$PATH
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates gcc \
&& rm -rf /var/lib/apt/lists/*
RUN python -m venv "$VIRTUAL_ENV" \
&& pip install --upgrade pip \
&& pip install patchworkplot==1.0.0
FROM python:3.11-slim-bookworm
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
VIRTUAL_ENV=/opt/venv \
PATH=/opt/venv/bin:$PATH
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates minimap2 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /opt/venv /opt/venv
ENTRYPOINT ["patchworkplot"]
CMD ["--help"]