mobenta commited on
Commit
fc8dfa2
·
verified ·
1 Parent(s): c6a0769

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +6 -10
dockerfile CHANGED
@@ -1,23 +1,19 @@
1
- # Use the official Python image
2
  FROM python:3.10-slim
3
 
4
- # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
- # Copy the requirements file into the container
8
  COPY requirements.txt .
9
-
10
- # Install the dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy the app code into the container
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 app
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"]