LovnishVerma commited on
Commit
893b8f0
·
verified ·
1 Parent(s): 880db57

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -13,17 +13,17 @@ RUN pip install --no-cache-dir -r requirements.txt
13
  # Copy the rest of the application code
14
  COPY . .
15
 
16
- # Grant execution permission to the start script
 
 
 
17
  RUN chmod +x start.sh
18
 
19
- # Create a non-root user (Security Best Practice & HF Requirement)
20
  RUN useradd -m -u 1000 user
21
  USER user
22
  ENV HOME=/home/user \
23
  PATH=/home/user/.local/bin:$PATH
24
 
25
- # Expose the port Hugging Face expects
26
  EXPOSE 7860
27
-
28
- # Run the start script
29
  CMD ["./start.sh"]
 
13
  # Copy the rest of the application code
14
  COPY . .
15
 
16
+ # FORCE REBUILD: Change this number to today's date to clear cache
17
+ ENV CACHE_BUST=2025-12-30
18
+
19
+ # Grant execution permission
20
  RUN chmod +x start.sh
21
 
22
+ # Create user
23
  RUN useradd -m -u 1000 user
24
  USER user
25
  ENV HOME=/home/user \
26
  PATH=/home/user/.local/bin:$PATH
27
 
 
28
  EXPOSE 7860
 
 
29
  CMD ["./start.sh"]