garvitcpp commited on
Commit
0e02573
·
verified ·
1 Parent(s): 7e14f37

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -12
Dockerfile CHANGED
@@ -1,12 +1,17 @@
1
- FROM python:3.9
2
-
3
- WORKDIR /code
4
-
5
- COPY ./requirements.txt /code/requirements.txt
6
-
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
-
9
- COPY ./app /code/app
10
- COPY ./app.py /code/app.py
11
-
12
- CMD ["python", "app.py"]
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /code
6
+
7
+ # Copy the requirements file to the container
8
+ COPY ./requirements.txt /code/requirements.txt
9
+
10
+ # Install the dependencies
11
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
+
13
+ # Copy the entire backend directory into the container
14
+ COPY ./backend /code/backend
15
+
16
+ # Set the command to run the app
17
+ CMD ["python", "backend/app/app.py"]