This commit is contained in:
Mateusz Gruszczyński
2026-07-15 08:51:57 +02:00
parent 85ffc36e75
commit 43c33bb714
4 changed files with 27 additions and 17 deletions
+17 -7
View File
@@ -1,19 +1,29 @@
FROM python:3.13-slim
FROM python:3.14-alpine
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential curl \
&& rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache \
curl \
freetype \
libjpeg-turbo \
zlib \
&& apk add --no-cache --virtual .build-deps \
build-base \
freetype-dev \
libffi-dev \
libjpeg-turbo-dev \
zlib-dev
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install -r requirements.txt \
&& apk del .build-deps
COPY app ./app
RUN mkdir -p /app/exports
EXPOSE 8000
EXPOSE 8147
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8147"]