VPS / Dockerfile
RockSky1's picture
Update Dockerfile
47d82f1 verified
Raw
History Blame Contribute Delete
587 Bytes
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
curl \
sudo \
git \
wget \
build-essential \
python3 \
python3-pip \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://code-server.dev/install.sh | sh
RUN echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN mkdir -p /home/ubuntu/workspace && \
chown -R ubuntu:ubuntu /home/ubuntu
USER ubuntu
WORKDIR /home/ubuntu/workspace
EXPOSE 7860
EXPOSE 3000
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]