Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -4,11 +4,14 @@ FROM python:3.11-slim
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Copy the requirements file
|
8 |
-
COPY
|
9 |
|
10 |
# Install required packages
|
11 |
-
RUN pip install
|
|
|
|
|
|
|
12 |
|
13 |
# Expose the port the app runs on
|
14 |
EXPOSE 8000
|
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy the requirements file
|
8 |
+
COPY requirements.txt ./
|
9 |
|
10 |
# Install required packages
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
# Copy the application code
|
14 |
+
COPY main.py ./
|
15 |
|
16 |
# Expose the port the app runs on
|
17 |
EXPOSE 8000
|