-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile-dev
27 lines (27 loc) · 1.01 KB
/
Dockerfile-dev
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
FROM python:3.11.9-bookworm
# UTF-8 encoding is necessary for printing non-ASCII characters to the
# terminal.
ENV LC_ALL=C.UTF-8
# Install Poetry.
# See https://python-poetry.org/docs/#installing-with-the-official-installer
RUN POETRY_VERSION=1.8.3 && \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl \
&& \
cd /tmp && \
curl -sSL https://install.python-poetry.org > install-poetry.py && \
POETRY_HOME=/usr/local/poetry python3 install-poetry.py --version $POETRY_VERSION && \
rm install-poetry.py && \
apt-get purge -y \
curl \
&& \
rm -rf /var/lib/apt/lists/*
ENV PATH=/usr/local/poetry/bin:${PATH}
# Stores Python packages in the local directory.
# See https://python-poetry.org/docs/configuration/#virtualenvsin-project
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
# Store Poetry configuration in the local directory.
# See https://python-poetry.org/docs/configuration/
ENV XDG_CONFIG_HOME=/app/.config
WORKDIR /app/