dioarafi commited on
Commit
7112be6
1 Parent(s): 31758fc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -12
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
- # Stage 1: Build
2
- FROM python:3.9 as builder
 
 
3
 
4
  WORKDIR /code
5
 
@@ -7,14 +9,6 @@ COPY ./requirements.txt /code/requirements.txt
7
 
8
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
 
10
- # Copy only necessary files to the next stage
11
- COPY ./app /code/app
12
-
13
- # Stage 2: Run
14
- FROM python:3.9-slim-buster
15
-
16
- WORKDIR /app
17
-
18
- COPY --from=builder /code/app /app
19
 
20
- CMD ["python", "main.py", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.9
5
 
6
  WORKDIR /code
7
 
 
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
+ COPY . .
 
 
 
 
 
 
 
 
13
 
14
+ CMD ["python", "main.py", "--host", "0.0.0.0", "--port", "7860"]