gopichandra commited on
Commit
fac00d6
·
verified ·
1 Parent(s): 38cdfd1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
- # Use Python 3.10 as base image
2
  FROM python:3.10
3
 
4
- # Set working directory
5
  WORKDIR /home/user/app
6
 
7
  # Install system dependencies
@@ -18,17 +18,17 @@ RUN apt-get update && apt-get install -y \
18
  && rm -rf /var/lib/apt/lists/* \
19
  && git lfs install
20
 
21
- # Copy requirements.txt into container
22
  COPY requirements.txt /tmp/requirements.txt
23
 
24
- # Install Python dependencies
25
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
26
 
27
- # Copy application code into container
28
  COPY . /home/user/app
29
 
30
- # Expose port (if web app, modify this part accordingly)
31
  EXPOSE 8080
32
 
33
- # Run the application (adjust this to your entry point)
34
  CMD ["python", "app.py"]
 
1
+ # Use Python 3.10 base image
2
  FROM python:3.10
3
 
4
+ # Set working directory inside the container
5
  WORKDIR /home/user/app
6
 
7
  # Install system dependencies
 
18
  && rm -rf /var/lib/apt/lists/* \
19
  && git lfs install
20
 
21
+ # Copy the requirements.txt into the container
22
  COPY requirements.txt /tmp/requirements.txt
23
 
24
+ # Install Python dependencies from requirements.txt
25
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
26
 
27
+ # Copy the application code into the container
28
  COPY . /home/user/app
29
 
30
+ # Expose the necessary port for the application
31
  EXPOSE 8080
32
 
33
+ # Command to run the application
34
  CMD ["python", "app.py"]