Update dockerfile
Browse files- dockerfile +6 -10
dockerfile
CHANGED
@@ -1,23 +1,19 @@
|
|
1 |
-
# Use
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Copy the requirements file
|
8 |
COPY requirements.txt .
|
9 |
-
|
10 |
-
# Install the dependencies
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
-
# Copy the
|
14 |
COPY . .
|
15 |
|
16 |
-
# Ensure the setup script is executable
|
17 |
RUN chmod +x setup.sh
|
18 |
-
|
19 |
-
# Run the setup script to clone the repository
|
20 |
RUN ./setup.sh
|
21 |
|
22 |
-
# Set the command to run the
|
23 |
CMD ["python", "app.py"]
|
|
|
1 |
+
# Use an official Python image as a base
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
+
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy the requirements file and install dependencies
|
8 |
COPY requirements.txt .
|
|
|
|
|
9 |
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
|
11 |
+
# Copy the rest of the application code
|
12 |
COPY . .
|
13 |
|
14 |
+
# Ensure the setup script is executable and run it
|
15 |
RUN chmod +x setup.sh
|
|
|
|
|
16 |
RUN ./setup.sh
|
17 |
|
18 |
+
# Set the command to run the application
|
19 |
CMD ["python", "app.py"]
|