This commit is contained in:
matt 2024-10-04 09:17:54 -07:00
parent 9da981bc25
commit df016eb08e
3 changed files with 11 additions and 7 deletions

View file

@ -13,7 +13,7 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK=on \
WORKDIR /app
# Install Poetry
RUN pip install poetry=="1.8.3"
RUN pip install "poetry==1.8.3"
# Copy only dependencies definition to the docker image
COPY . /app/

View file

@ -9,17 +9,21 @@ COPY . .
RUN ["npx", "tailwindcss", "-o", "./docs_project/static/app.css"]
# Use an official Python runtime as a base image
FROM python:3.10-slim
FROM python:3.12-slim-bookworm as base
# Keep logs unbuffered
ENV PYTHONUNBUFFERED 1
# Setup env
ENV PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_NO_CACHE_DIR=off \
POETRY_NO_INTERACTION=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
DEBIAN_FRONTEND=noninteractive
# Set the working directory in the container
WORKDIR /app
# Install Poetry
RUN pip install --upgrade pip \
&& pip install poetry
RUN pip install "poetry==1.8.3"
# Copy only dependencies definition to the docker image
COPY . /app/

View file

@ -23,7 +23,7 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK=on \
WORKDIR /app
# Install Poetry
RUN pip install poetry
RUN pip install "poetry==1.8.3"
# Copy only dependencies definition to the docker image
COPY . /app/