Spaces:
Running
Running
File size: 674 Bytes
5a836c3 937bc45 2b34fff 94b4239 2b34fff 94b4239 5a836c3 30dd390 88f7ce9 30dd390 ae8bd75 |
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 26 27 28 29 |
FROM python:3.11-slim
WORKDIR $HOME/app
COPY . .
RUN pip3 uninstall ffmpeg
RUN pip3 uninstall ffmpeg-python
RUN pip uninstall ffmpeg
RUN pip uninstall ffmpeg-python
RUN pip3 install ffmpeg
RUN pip3 install ffmpeg-python
RUN pip install ffmpeg
RUN pip install ffmpeg-python
RUN pip install -r requirements.txt
VOLUME /data
EXPOSE 23333
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
RUN mkdir -p $HOME/app/models
RUN chmod 777 $HOME/app/models
ENV MODELS_PATH=$HOME/app/models
RUN mkdir -p $HOME/app/uploads
RUN chmod 777 $HOME/app/uploads
CMD ["python", "-m", "apis.chat_api"] |