Spaces:
Runtime error
Runtime error
Neupane9Sujal
commited on
Commit
•
9fb5ac0
1
Parent(s):
426d92a
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -4,16 +4,16 @@ FROM python:3.9
|
|
4 |
FROM python:3.9
|
5 |
|
6 |
# WORKDIR - sets the working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile.
|
7 |
-
WORKDIR /
|
8 |
|
9 |
# Copy the requirements file to the container
|
10 |
COPY requirements.txt .
|
11 |
|
12 |
-
#COPY - copies files or directories and adds them to the filesystem of the container.
|
13 |
-
COPY . ./
|
14 |
-
|
15 |
# Install the required packages
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
|
|
|
|
|
|
|
18 |
# Set the command to run when the container starts
|
19 |
-
CMD["uvicorn","app:app","--host","0.0.0.0", "--port", "8000"]
|
|
|
4 |
FROM python:3.9
|
5 |
|
6 |
# WORKDIR - sets the working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile.
|
7 |
+
WORKDIR /app
|
8 |
|
9 |
# Copy the requirements file to the container
|
10 |
COPY requirements.txt .
|
11 |
|
|
|
|
|
|
|
12 |
# Install the required packages
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
+
# Copy the application files to the container
|
16 |
+
COPY . .
|
17 |
+
|
18 |
# Set the command to run when the container starts
|
19 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|