AEUPH commited on
Commit
ae73f0f
·
verified ·
1 Parent(s): 9893785

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -9,6 +9,8 @@ RUN pip install --no-cache-dir -r requirements.txt
9
 
10
  # Create a user to avoid running as root (HF requirement)
11
  RUN useradd -m -u 1000 user
 
 
12
  USER user
13
  ENV HOME=/home/user \
14
  PATH=/home/user/.local/bin:$PATH
@@ -16,6 +18,12 @@ ENV HOME=/home/user \
16
  # Copy the monolith to the container
17
  COPY --chown=user . .
18
 
 
 
 
 
 
 
19
  # Expose the standard Hugging Face port
20
  EXPOSE 7860
21
 
 
9
 
10
  # Create a user to avoid running as root (HF requirement)
11
  RUN useradd -m -u 1000 user
12
+
13
+ # Switch to user
14
  USER user
15
  ENV HOME=/home/user \
16
  PATH=/home/user/.local/bin:$PATH
 
18
  # Copy the monolith to the container
19
  COPY --chown=user . .
20
 
21
+ # --- DEBUGGING STEP ---
22
+ # This will print the contents of /app to your build logs.
23
+ # Check the logs to see where app.py actually is!
24
+ RUN ls -R /app
25
+ # ----------------------
26
+
27
  # Expose the standard Hugging Face port
28
  EXPOSE 7860
29