Spaces:
Running
Running
File size: 482 Bytes
758e6c4 |
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-slim
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
ENV GRADIO_SERVER_NAME 0.0.0.0
RUN useradd -m -u 1000 user
WORKDIR /home/user/app
RUN :\
&& apt-get update -y \
&& apt-get install -y --no-install-recommends ffmpeg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN --mount=target=requirements.txt,source=requirements.txt :\
&& pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
ENTRYPOINT ["python", "app.py"] |