This commit is contained in:
Pawel
2026-05-22 13:57:56 -04:00
parent 86d582a572
commit f0ea67bb45
10 changed files with 2096 additions and 23 deletions

24
Dockerfile.webapp Normal file
View File

@@ -0,0 +1,24 @@
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt pyproject.toml README.md ./
COPY src ./src
COPY configs ./configs
COPY images ./images
COPY webapp ./webapp
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir fastapi "uvicorn[standard]" pydantic \
&& pip install --no-cache-dir -e .
EXPOSE 8055
CMD ["uvicorn", "webapp.app:app", "--host", "0.0.0.0", "--port", "8055"]