Skip to content

Commit 0d101f7

Browse files
chore: Update Dockerfile (#3536)
Co-authored-by: Wendong-Fan <[email protected]>
1 parent 51d2dc5 commit 0d101f7

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

camel/interpreters/docker/Dockerfile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
FROM ubuntu:24.04@sha256:c35e29c9450151419d9448b0fd75374fec4fff364a27f176fb458d472dfc9e54
2+
FROM ubuntu:24.04
33

44
ENV DEBIAN_FRONTEND=noninteractive
55

@@ -23,13 +23,18 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
2323
python3.10 \
2424
python3.10-venv \
2525
python3.10-dev \
26-
python3.10-distutils \
27-
python3-pip \
28-
&& ln -s /usr/bin/python3.10 /usr/bin/python \
2926
&& rm -rf /var/lib/apt/lists/* \
3027
&& apt-get clean \
3128
&& apt-get autoremove -y
3229

30+
RUN python3.10 -m venv /opt/venv
31+
ENV PATH="/opt/venv/bin:$PATH"
32+
33+
RUN pip install --upgrade pip setuptools wheel
34+
RUN pip install uv
35+
36+
RUN ln -sf /opt/venv/bin/python /usr/bin/python
37+
3338
RUN apt-get update && \
3439
apt-get install -y r-base && \
3540
rm -rf /var/lib/apt/lists/* && \
@@ -42,12 +47,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
4247
apt-get clean && \
4348
apt-get autoremove -y
4449

45-
RUN curl -fsSL https://install.python-poetry.org | python3.10 - && \
50+
RUN curl -fsSL https://install.python-poetry.org | python - && \
4651
ln -s ~/.local/bin/poetry /usr/local/bin/poetry
4752

48-
RUN python3.10 -m pip install --upgrade pip setuptools wheel
49-
RUN pip install uv
50-
5153
RUN groupadd -r devuser && useradd -r -m -g devuser devuser
5254
WORKDIR /workspace
5355
RUN chown -R devuser:devuser /workspace

0 commit comments

Comments
 (0)