wu981526092 commited on
Commit
c27493d
·
1 Parent(s): 360b135

Add EXPOSE 7860 to Dockerfile for HF Spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -9,8 +9,15 @@ ENV PATH="/home/user/.local/bin:$PATH"
9
 
10
  WORKDIR /app
11
 
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
 
15
  COPY --chown=user . /app
 
 
 
 
 
16
  CMD ["python", "app.py"]
 
9
 
10
  WORKDIR /app
11
 
12
+ # Install Python dependencies
13
  COPY --chown=user ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
+ # Copy application code
17
  COPY --chown=user . /app
18
+
19
+ # Expose the port (HF Spaces default)
20
+ EXPOSE 7860
21
+
22
+ # Start the application
23
  CMD ["python", "app.py"]