code-server/Dockerfile
merith-xyz afb63ceb58
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 44s
update entrypoint
2024-11-03 13:12:07 -08:00

37 lines
No EOL
786 B
Docker

FROM codercom/code-server:latest
USER root
# Set environment variables
ENV DEFAULT_WORKSPACE=/workspace
ENV DOCKER_USER=code
# Define persistent volumes for /home and /workspace
VOLUME ["/home", "/workspace"]
# Install development tools with optimization for minimal package installs
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
curl \
wget \
vim \
zsh \
tmux \
htop \
tree \
jq \
unzip \
zip \
gcc \
g++ \
make \
cmake \
python3 \
python3-pip \
python3-venv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/usr/bin/entrypoint.sh" "--bind-addr" "0.0.0.0:8080" "/workspace"]