madhwdh11 commited on
Commit
7ffb757
·
verified ·
1 Parent(s): db53cac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -1,7 +1,16 @@
1
  FROM python:3.12-slim
2
 
 
 
 
 
3
  WORKDIR /app
4
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
1
  FROM python:3.12-slim
2
 
3
+ # Set env to prevent .pyc files and buffering
4
+ ENV PYTHONDONTWRITEBYTECODE=1
5
+ ENV PYTHONUNBUFFERED=1
6
+
7
  WORKDIR /app
8
 
9
+ # Install system dependencies first (optional)
10
+ RUN apt-get update && apt-get install -y --no-install-recommends \
11
+ build-essential \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16