blob: ca696174f018e4efcae87eeb8e0a3a2f07c77050 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
ARG python_version=3-slim
FROM python:$python_version
# POETRY_VIRTUALENVS_IN_PROJECT is required to ensure in-projects venvs mounted from the host in dev
# don't get prioritised by `poetry run`
ENV POETRY_VERSION=1.7.1 \
POETRY_HOME="/opt/poetry/home" \
POETRY_CACHE_DIR="/opt/poetry/cache" \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=false
ENV PATH="$POETRY_HOME/bin:$PATH"
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install --no-install-recommends -y curl \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN curl -sSL https://install.python-poetry.org | python
|