Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -2,6 +2,12 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# Downgrade pip FIRST before anything else
|
| 6 |
RUN pip install "pip<24.1"
|
| 7 |
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install g++ and build tools first
|
| 6 |
+
RUN apt-get update && apt-get install -y \
|
| 7 |
+
g++ \
|
| 8 |
+
build-essential \
|
| 9 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
+
|
| 11 |
# Downgrade pip FIRST before anything else
|
| 12 |
RUN pip install "pip<24.1"
|
| 13 |
|