YALCINKAYA commited on
Commit
9bb1e22
·
verified ·
1 Parent(s): e35273c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -11,6 +11,13 @@ RUN mkdir -p /workspace/huggingface_cache && \
11
  # Set environment variable for Hugging Face cache
12
  ENV HF_HOME=/workspace/huggingface_cache
13
 
 
 
 
 
 
 
 
14
  # Copy the requirements file into the image
15
  COPY requirements.txt requirements.txt
16
 
@@ -25,3 +32,4 @@ EXPOSE 7860
25
 
26
  # Command to run your application
27
  CMD ["python", "app.py"]
 
 
11
  # Set environment variable for Hugging Face cache
12
  ENV HF_HOME=/workspace/huggingface_cache
13
 
14
+ # Create and set permissions for the /.triton directory to avoid permission issues
15
+ RUN mkdir -p /root/.triton && chmod -R 777 /root/.triton
16
+ ENV TRITON_CACHE_DIR=/root/.triton
17
+
18
+ # Install system dependencies
19
+ RUN apt-get update && apt-get install -y git
20
+
21
  # Copy the requirements file into the image
22
  COPY requirements.txt requirements.txt
23
 
 
32
 
33
  # Command to run your application
34
  CMD ["python", "app.py"]
35
+