From ca1bd11a38449da700d1c477161bb1d036bdd28d Mon Sep 17 00:00:00 2001 From: merith-tk Date: Sun, 3 Nov 2024 13:07:43 -0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 05546cf..30baf3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1,34 @@ -FROM alpine:3.12 \ No newline at end of file +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/*