Files
Anthias/docker/Dockerfile.dev
Nico Miguelino 9983ba631b fix: enforce HTTPS when using curl to install Poetry (#2152)
* fix: enforce HTTPS when using `curl` to install Poetry
* chore(ci): exclude development-related files from build pipeline
2024-12-05 13:19:00 -08:00

13 lines
343 B
Docker

FROM python:3.11-bookworm
RUN apt-get update -y && \
curl --proto "=https" -sSL https://install.python-poetry.org | python3 - && \
ln -s /root/.local/bin/poetry /usr/local/bin/poetry
WORKDIR /app
COPY pyproject.toml poetry.lock /app/
RUN poetry install --only=docker-image-builder
RUN git config --global --add safe.directory /app