-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 723 Bytes
/
Dockerfile
File metadata and controls
31 lines (25 loc) · 723 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
ARG PYTHON_IMAGE=3.10-slim
FROM python:${PYTHON_IMAGE}
ARG POETRY_VERSION
LABEL org.opencontainers.image.authors="biggates2010@gmail.com"
ENV PATH=/root/.local/bin:$PATH
RUN --mount=type=bind,source=install.py,target=/install.py set -eux; \
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libssl-dev \
libffi-dev \
cargo \
pkg-config \
; \
POETRY_VERSION=$POETRY_VERSION python /install.py ; \
apt-get purge -y \
build-essential \
libssl-dev \
libffi-dev \
cargo \
pkg-config \
; \
apt-get autoremove -y ; \
rm -rf /var/lib/apt/lists/* ; \
poetry --version
CMD ["python3"]