Spaces:
Running
on
Zero
Running
on
Zero
add docker sdk
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -21,21 +21,19 @@ USER user
|
|
21 |
ENV HOME=/home/user \
|
22 |
PATH=/home/user/.local/bin:$PATH
|
23 |
|
|
|
24 |
WORKDIR $HOME/app
|
25 |
|
26 |
-
# Copy
|
27 |
-
COPY --chown=user .
|
28 |
|
29 |
# Install Python dependencies
|
30 |
RUN pip install --upgrade pip
|
31 |
RUN pip install -r requirements.txt
|
32 |
|
33 |
-
# # Install ESM
|
34 |
-
# RUN pip install esm
|
35 |
-
|
36 |
# Simulate NVIDIA driver for Hugging Face Spaces
|
37 |
ENV NVIDIA_VISIBLE_DEVICES=all
|
38 |
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
|
39 |
|
40 |
# Set the command to run the Gradio app
|
41 |
-
CMD ["python", "main.py"]
|
|
|
21 |
ENV HOME=/home/user \
|
22 |
PATH=/home/user/.local/bin:$PATH
|
23 |
|
24 |
+
# Set the working directory to the user's home directory (root of your app)
|
25 |
WORKDIR $HOME/app
|
26 |
|
27 |
+
# Copy everything from the root of your local directory to the container's working directory
|
28 |
+
COPY --chown=user . .
|
29 |
|
30 |
# Install Python dependencies
|
31 |
RUN pip install --upgrade pip
|
32 |
RUN pip install -r requirements.txt
|
33 |
|
|
|
|
|
|
|
34 |
# Simulate NVIDIA driver for Hugging Face Spaces
|
35 |
ENV NVIDIA_VISIBLE_DEVICES=all
|
36 |
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
|
37 |
|
38 |
# Set the command to run the Gradio app
|
39 |
+
CMD ["python", "main.py"]
|