fixed storage error

This commit is contained in:
belviskhoremk
2026-05-27 23:17:34 +00:00
parent a10c95d8dd
commit fad2b3a9f3
9 changed files with 141 additions and 102 deletions

View File

@@ -1,15 +1,15 @@
FROM python:3.12-alpine
FROM python:3.12-slim
WORKDIR /app
# Install ALL required build tools
RUN apk add --no-cache \
gcc \
g++ \
musl-dev \
python3-dev \
cmake \
make
# System deps for build tools + Playwright/Chromium
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc g++ make cmake \
# Playwright Chromium dependencies
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \
libgbm1 libasound2 libpango-1.0-0 libcairo2 libatspi2.0-0 \
&& rm -rf /var/lib/apt/lists/*
RUN pip install uv
@@ -19,8 +19,11 @@ COPY uv.lock .
RUN uv pip install --system "pydantic[email]"
RUN uv pip install --system .
# Install Playwright's Chromium browser
RUN playwright install chromium
COPY . .
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]