mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-11 14:13:23 +00:00
- Drop the Docker and GitHub apt repositories and the Ruby build headers from the image; keep build-essential, bubblewrap, zip and unzip. - Document home installs for the Docker CLI with its Compose and Buildx plugins, gh, Go, Rust, Python, Node and Java, ordered so each installer writes to ~/.zshrc and SDKMAN stays last. - Drop the Ruby, GitLab CLI and jq instructions.
20 lines
578 B
Docker
20 lines
578 B
Docker
FROM codercom/code-server:latest
|
|
|
|
USER root
|
|
|
|
# Extra system packages.
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
build-essential bubblewrap unzip zip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Workspace directory, owned by the container user.
|
|
RUN mkdir -p /workspace && chown 1000:1000 /workspace
|
|
|
|
# Startup wrapper: enters DEFAULT_WORKSPACE, joins the Docker socket's group,
|
|
# then runs the image's entrypoint.
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
USER 1000
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]
|