Tonic commited on
Commit
67b34dd
·
unverified ·
1 Parent(s): 92d83f2

add docker sdk

Browse files
Files changed (1) hide show
  1. 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 the current directory contents into the container at $HOME/app setting the owner to the user
27
- COPY --chown=user . $HOME/app
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"]