Harshilforworks commited on
Commit
35aec04
·
verified ·
1 Parent(s): 8053dcd

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- # Use standard Python image
2
- FROM python:3.9-slim
3
 
4
  # Set working directory
5
  WORKDIR /app
@@ -7,11 +7,9 @@ WORKDIR /app
7
  # Avoid interactive prompts
8
  ARG DEBIAN_FRONTEND=noninteractive
9
 
10
- # Install system dependencies (optimized apt)
11
- RUN apt-get update -o Acquire::CompressionTypes::Order::=gz && \
12
- apt-get install -y --no-install-recommends \
13
- build-essential \
14
- && rm -rf /var/lib/apt/lists/*
15
 
16
  # Copy and install requirements
17
  COPY requirements.txt .
 
1
+ # Use full Python image (not slim)
2
+ FROM python:3.11
3
 
4
  # Set working directory
5
  WORKDIR /app
 
7
  # Avoid interactive prompts
8
  ARG DEBIAN_FRONTEND=noninteractive
9
 
10
+ # No need for build-essential because python:3.11 already includes build tools
11
+ # If you still want system deps, add them here:
12
+ # RUN apt-get update && apt-get install -y --no-install-recommends <packages> && rm -rf /var/lib/apt/lists/*
 
 
13
 
14
  # Copy and install requirements
15
  COPY requirements.txt .