|
FROM python:3.10 |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
git \ |
|
git-lfs \ |
|
ffmpeg \ |
|
libsm6 \ |
|
libxext6 \ |
|
cmake \ |
|
rsync \ |
|
libgl1-mesa-glx \ |
|
curl \ |
|
build-essential \ |
|
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ |
|
&& rm -rf /var/lib/apt/lists/* \ |
|
&& git lfs install |
|
|
|
|
|
ENV PATH="/root/.cargo/bin:${PATH}" |
|
|
|
|
|
WORKDIR /home/user/app |
|
|
|
|
|
RUN pip install --no-cache-dir --upgrade pip |
|
|
|
|
|
COPY requirements.txt /tmp/requirements.txt |
|
|
|
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt |
|
|
|
|
|
COPY . . |
|
|
|
|
|
ENV GRADIO_SERVER_NAME="0.0.0.0" |
|
ENV GRADIO_SERVER_PORT=7860 |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["python", "app.py"] |
|
|