tensorus commited on
Commit
eb694c3
·
verified ·
1 Parent(s): 9ca729e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -4,9 +4,12 @@ WORKDIR /app
4
 
5
  COPY . .
6
 
 
7
  RUN apt-get update && \
8
- pip install --no-cache-dir -r requirements.txt && \
 
9
 
 
10
  EXPOSE 7860
11
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
 
5
  COPY . .
6
 
7
+ # Install dependencies and set executable permissions
8
  RUN apt-get update && \
9
+ apt-get install -y nginx && \
10
+ pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Expose port 7860 (as required by Hugging Face Spaces)
13
  EXPOSE 7860
14
 
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]