Skip to content

Commit 2953f9f

Browse files
committed
feat: Adjust codeserver to use uv instead of rye
1 parent 05d883d commit 2953f9f

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

docker/code-server/Dockerfile

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ ENV PYTHONUNBUFFERED=1 \
3030
# Used to build deps + create our virtual environment
3131
################################
3232
FROM python-base AS builder-base
33+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
34+
3335
RUN apt-get update && \
3436
apt-get install -y curl bash-completion \
3537
software-properties-common \
@@ -40,19 +42,10 @@ RUN apt-get update && \
4042
apt-get clean && \
4143
rm -rf /var/lib/apt/lists/*
4244

43-
ENV PATH="/root/.rye/bin:$PATH"
44-
ENV RYE_INSTALL_OPTION="--yes"
45-
ENV SHELL="/bin/bash"
46-
47-
48-
# Download and install rye with proper link
49-
RUN curl -sSf https://rye.astral.sh/get | bash
50-
51-
# Source rye environment
52-
RUN echo 'source $HOME/.rye/env' >> /root/.profile
53-
RUN echo 'source "$HOME/.rye/env"' >> ~/.bashrc
45+
RUN curl -fsSL https://get.docker.com | sh
5446

5547
# Expose the port used by code-server
5648
EXPOSE 8443
5749

50+
5851
RUN /app/code-server/bin/code-server --install-extension ms-python.python

0 commit comments

Comments
 (0)