16 lines
330 B
Docker
16 lines
330 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY web/requirements-web.txt /app/web/requirements-web.txt
|
|
RUN pip install --no-cache-dir -r /app/web/requirements-web.txt
|
|
|
|
COPY . /app
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["python", "-m", "uvicorn", "web.app:app", "--host", "0.0.0.0", "--port", "8000"]
|