Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
# Use
|
| 2 |
-
FROM python:3.
|
| 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 |
-
#
|
| 11 |
-
|
| 12 |
-
|
| 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 .
|