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