ParthCodes commited on
Commit
1304ffe
·
verified ·
1 Parent(s): 14a9047

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -1,17 +1,11 @@
1
- # Menggunakan base image Python 3.9
2
  FROM python:3.11
3
 
4
- # Mengatur direktori kerja ke /code
5
  WORKDIR /code
6
 
7
- # Menyalin requirements.txt ke /code
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
- # Menginstal dependensi dari requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
- # Menyalin seluruh konten proyek Anda ke /code
14
  COPY . /code
15
 
16
- # CMD untuk menjalankan Gunicorn
17
- CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860"]
 
 
1
  FROM python:3.11
2
 
 
3
  WORKDIR /code
4
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
 
7
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
 
 
9
  COPY . /code
10
 
11
+ CMD ["gunicorn", "main:app", "-b", "0.0.0.0:7860"]