mirror of
https://github.com/wrabit/django-cotton.git
synced 2025-08-04 15:18:20 +00:00
fixes
This commit is contained in:
parent
9da981bc25
commit
df016eb08e
3 changed files with 11 additions and 7 deletions
|
@ -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/
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue