p5jsai-api / Dockerfile
li2895's picture
Deploy to Hugging Face Spaces
1689f23
Raw
History Blame Contribute Delete
598 Bytes
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY config.py /app/config.py
COPY filters.py /app/filters.py
COPY tools.py /app/tools.py
COPY translate.py /app/translate.py
COPY upstream.py /app/upstream.py
COPY render.py /app/render.py
COPY stream.py /app/stream.py
COPY response_cache.py /app/response_cache.py
COPY main.py /app/main.py
EXPOSE 7860
CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port ${PORT:-7860}"]