Explicitly install gcc, g++, python3-dev and set CC/CXX
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -9,12 +9,17 @@ LABEL org.opencontainers.image.description="Renewable energy grid load-balancing
|
|
| 9 |
LABEL openenv="true"
|
| 10 |
|
| 11 |
# Install Python 3.10 and build tools (needed by Triton/Unsloth)
|
|
|
|
| 12 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 13 |
-
python3.10 python3-pip python3.10-venv
|
|
|
|
| 14 |
ln -sf /usr/bin/python3.10 /usr/bin/python && \
|
| 15 |
ln -sf /usr/bin/pip3 /usr/bin/pip && \
|
| 16 |
rm -rf /var/lib/apt/lists/*
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
RUN useradd -m -u 1000 user
|
| 19 |
USER user
|
| 20 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
| 9 |
LABEL openenv="true"
|
| 10 |
|
| 11 |
# Install Python 3.10 and build tools (needed by Triton/Unsloth)
|
| 12 |
+
USER root
|
| 13 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 14 |
+
python3.10 python3-pip python3.10-venv python3-dev \
|
| 15 |
+
build-essential gcc g++ && \
|
| 16 |
ln -sf /usr/bin/python3.10 /usr/bin/python && \
|
| 17 |
ln -sf /usr/bin/pip3 /usr/bin/pip && \
|
| 18 |
rm -rf /var/lib/apt/lists/*
|
| 19 |
|
| 20 |
+
ENV CC=/usr/bin/gcc
|
| 21 |
+
ENV CXX=/usr/bin/g++
|
| 22 |
+
|
| 23 |
RUN useradd -m -u 1000 user
|
| 24 |
USER user
|
| 25 |
ENV PATH="/home/user/.local/bin:$PATH"
|