File size: 598 Bytes
1689f23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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}"]