File size: 425 Bytes
ab602ee
 
 
 
d5b455f
 
433a26a
 
3c905da
ab602ee
d5b455f
ab602ee
033e0f5
4fc0911
33a7f5c
 
 
a1fbb7f
 
4fc0911
22909b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.10

WORKDIR /app

COPY . .

RUN apt-get update && apt-get install -y ffmpeg

RUN pip install --no-cache-dir -r requirements/main.txt

EXPOSE 7860

ENV TEMP_DIR=/app/outputs
ENV MODELS_DIR=/app/models
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
ENV NUMBA_DISABLE_CACHING=1

RUN mkdir -p $TEMP_DIR
RUN chmod -R 777 $MODELS_DIR && chmod -R 777 $TEMP_DIR

CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]