LovnishVerma commited on
Commit
79ed3af
·
verified ·
1 Parent(s): e370d77

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,20 +1,20 @@
1
- # Menggunakan base image Python 3.9
2
  FROM python:3.9
3
 
4
- # Mengatur direktori kerja ke /code
5
  WORKDIR /code
6
 
7
- # Menginstal dependencies sistem yang dibutuhkan, termasuk libGL.so.1
8
  RUN apt-get update && apt-get install -y libgl1 && apt-get clean
9
 
10
- # Menyalin requirements.txt ke /code
11
  COPY ./requirements.txt /code/requirements.txt
12
 
13
- # Menginstal dependensi dari requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
- # Menyalin seluruh konten proyek Anda ke /code
17
  COPY . /code
18
 
19
- # CMD untuk menjalankan Gunicorn
20
  CMD ["gunicorn", "main:app", "-b", "0.0.0.0:7860"]
 
1
+ # Using Python 3.9 base image
2
  FROM python:3.9
3
 
4
+ # Set the working directory to /code
5
  WORKDIR /code
6
 
7
+ # Install necessary system dependencies, including libGL.so.1
8
  RUN apt-get update && apt-get install -y libgl1 && apt-get clean
9
 
10
+ # Copy requirements.txt to /code
11
  COPY ./requirements.txt /code/requirements.txt
12
 
13
+ # Install dependencies from requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
+ # Copy the entire project content to /code
17
  COPY . /code
18
 
19
+ # CMD to run Gunicorn
20
  CMD ["gunicorn", "main:app", "-b", "0.0.0.0:7860"]