Spaces:
Sleeping

PERDYPTO commited on
Commit
38ad9b2
·
verified ·
1 Parent(s): 3d473a7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -11
Dockerfile CHANGED
@@ -1,15 +1,12 @@
1
- FROM python:3.11-slim
2
 
3
- RUN useradd -m -u 1000 user
4
- ENV HOME=/home/user
5
- ENV PATH=/home/user/.local/bin:$PATH
6
- WORKDIR /home/user/app
7
 
8
- COPY --chown=user:user requirements.txt .
9
- RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- COPY --chown=user:user . .
 
12
 
13
- EXPOSE 7860
14
-
15
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.12-slim
2
 
3
+ WORKDIR /app
 
 
 
4
 
5
+ # Install huggingface_hub
6
+ RUN pip install --no-cache-dir huggingface_hub
7
 
8
+ # Copy the script
9
+ COPY app.py .
10
 
11
+ # Run the script when the container starts
12
+ CMD ["python", "app.py"]