mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-11 12:09:25 +00:00
Drop them from the image; the README gives the commands to install each into ~/.local/bin on the home volume. System packages stay in the image.
21 lines
921 B
Docker
21 lines
921 B
Docker
# Adds a C toolchain, sudo, zsh and nano to the official image. See README.md,
|
|
# which carries the reasoning for everything here.
|
|
FROM ghcr.io/getpaseo/paseo:latest
|
|
|
|
# --- system packages -------------------------------------------------------
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
build-essential sudo \
|
|
zsh nano \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& usermod -aG sudo paseo
|
|
|
|
# --- agent cli path --------------------------------------------------------
|
|
# Puts the $HOME directories the agent and tool installers write to on PATH.
|
|
ENV PATH=/home/paseo/.local/bin:/home/paseo/.opencode/bin:$PATH
|
|
|
|
# --- entrypoint ------------------------------------------------------------
|
|
# Wraps the image's entrypoint with the root-stage setup -- see entrypoint.sh.
|
|
COPY --chmod=0755 entrypoint.sh /usr/local/bin/entrypoint
|
|
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/entrypoint"]
|