@ -1,13 +1,11 @@
# Use the official Python 3.11 image from the Docker Hub
FROM python:3.13-slim as builder
ARG GITEA_TOKEN
FROM python:3.11-slim as builder
# Install Poetry
RUN pip install poetry
RUN poetry config http-basic.licaeros-repo token ${ GITEA_TOKEN }
ARG GITEA_USERNAME
ARG GITEA_PASSWORD
# Set environment variables for Poetry
ENV POETRY_NO_INTERACTION = 1 \
@ -18,6 +16,8 @@ ENV POETRY_NO_INTERACTION=1 \
# Set the working directory
WORKDIR /app
RUN poetry config http-basic.licaeros-repo ${ GITEA_USERNAME } ${ GITEA_PASSWORD }
# Copy the Poetry configuration files
COPY pyproject.toml poetry.lock ./
@ -25,7 +25,7 @@ COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root
# Use a new slim image for the runtime
FROM python:3.1 3 -slim as runtime
FROM python:3.1 1 -slim as runtime
# Install necessary tools for running the app, including `make`
RUN apt-get update && apt-get install -y --no-install-recommends \