shriyadiker commited on
Commit
28c15f1
·
verified ·
1 Parent(s): b89a48c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -9
Dockerfile CHANGED
@@ -1,24 +1,27 @@
1
- # Pin Python to the EXACT version you know works
2
- FROM python:3.12.13-slim
3
 
4
- # Prevent Python from writing .pyc files and enable real-time logging
5
  ENV PYTHONDONTWRITEBYTECODE=1
6
  ENV PYTHONUNBUFFERED=1
7
 
8
  # Install system dependencies
9
  RUN apt-get update && apt-get install -y \
10
- git git-lfs curl && \
11
- rm -rf /var/lib/apt/lists/* && \
12
- git lfs install
 
 
13
 
 
14
  WORKDIR /app
15
 
16
- # Copy your requirements file and install dependencies
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # Copy the rest of your application code
21
  COPY . .
22
 
23
- # Command to run the app
24
  CMD ["python", "app.py"]
 
1
+ # Use Python 3.12 - NOT 3.13
2
+ FROM python:3.12-slim
3
 
4
+ # Set environment variables
5
  ENV PYTHONDONTWRITEBYTECODE=1
6
  ENV PYTHONUNBUFFERED=1
7
 
8
  # Install system dependencies
9
  RUN apt-get update && apt-get install -y \
10
+ git \
11
+ git-lfs \
12
+ curl \
13
+ && rm -rf /var/lib/apt/lists/* \
14
+ && git lfs install
15
 
16
+ # Set working directory
17
  WORKDIR /app
18
 
19
+ # Copy and install Python dependencies
20
  COPY requirements.txt .
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
+ # Copy application code
24
  COPY . .
25
 
26
+ # Run the app
27
  CMD ["python", "app.py"]