Spaces:
Runtime error
Runtime error
run_app.py
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Use an official PyTorch image with CUDA support as the base image
|
| 2 |
-
FROM pytorch/pytorch:2.
|
| 3 |
|
| 4 |
# Install Git and system libraries required for OpenGL without interactive prompts
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
@@ -30,11 +30,11 @@ WORKDIR $HOME/app
|
|
| 30 |
# Clone your repository or add your code to the container
|
| 31 |
RUN git clone -b main https://github.com/fffiloni/Hotshot-XL $HOME/app
|
| 32 |
|
| 33 |
-
# Add the
|
| 34 |
-
COPY
|
| 35 |
|
| 36 |
# Install dependencies
|
| 37 |
-
RUN pip install --no-cache-dir -r requirements.txt gradio accelerate
|
| 38 |
|
| 39 |
RUN find $HOME/app
|
| 40 |
|
|
@@ -42,5 +42,5 @@ RUN find $HOME/app
|
|
| 42 |
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
| 43 |
ENV CUDA_VISIBLE_DEVICES=0
|
| 44 |
|
| 45 |
-
# Run the
|
| 46 |
CMD ["python", "run_app.py"]
|
|
|
|
| 1 |
# Use an official PyTorch image with CUDA support as the base image
|
| 2 |
+
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
|
| 3 |
|
| 4 |
# Install Git and system libraries required for OpenGL without interactive prompts
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
| 30 |
# Clone your repository or add your code to the container
|
| 31 |
RUN git clone -b main https://github.com/fffiloni/Hotshot-XL $HOME/app
|
| 32 |
|
| 33 |
+
# Add the server script
|
| 34 |
+
COPY server.py $HOME/app/
|
| 35 |
|
| 36 |
# Install dependencies
|
| 37 |
+
RUN pip install --no-cache-dir -r requirements.txt gradio accelerate flask
|
| 38 |
|
| 39 |
RUN find $HOME/app
|
| 40 |
|
|
|
|
| 42 |
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
| 43 |
ENV CUDA_VISIBLE_DEVICES=0
|
| 44 |
|
| 45 |
+
# Run the server script
|
| 46 |
CMD ["python", "run_app.py"]
|