21 lines
319 B
Docker
21 lines
319 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . /app
|
|
|
|
ENV CONFIG_PATH=/app/config.json \
|
|
UVICORN_HOST=0.0.0.0 \
|
|
UVICORN_PORT=80
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["python", "-m", "main"]
|
|
|