|
| 1 | +FROM linuxserver/code-server:4.14.0@sha256:8c76533b90b5380f8ee17668c1ba7acf5974a1ab4ffe64c015350d38fb3e810c |
| 2 | +SHELL ["/bin/bash", "-eo", "pipefail", "-c"] |
| 3 | + |
| 4 | +RUN \ |
| 5 | + apt-get -y update && \ |
| 6 | + LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ |
| 7 | + # Used to download binaries (implies the package "ca-certificates" as a dependency) |
| 8 | + curl \ |
| 9 | + # Dev. Tooling packages (e.g. tools provided by this image installable through Alpine Linux Packages) |
| 10 | + git \ |
| 11 | + make \ |
| 12 | + build-essential \ |
| 13 | + jq \ |
| 14 | + zip \ |
| 15 | + # python |
| 16 | + python3 \ |
| 17 | + python3-pip \ |
| 18 | + gpg \ |
| 19 | + lsb-release \ |
| 20 | + # Required for building Ruby |
| 21 | + libssl-dev libreadline-dev zlib1g-dev \ |
| 22 | + # Required for some of the ruby gems that will be installed |
| 23 | + libyaml-dev libncurses5-dev libffi-dev libgdbm-dev \ |
| 24 | + && \ |
| 25 | + apt-get clean &&\ |
| 26 | + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| 27 | + |
| 28 | +# Install ASDF to install custom tools |
| 29 | +ARG ASDF_VERSION=0.11.3 |
| 30 | +RUN bash -c "git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v${ASDF_VERSION} && \ |
| 31 | + echo 'legacy_version_file = yes' > $HOME/.asdfrc && \ |
| 32 | + printf 'yarn\njsonlint' > $HOME/.default-npm-packages && \ |
| 33 | + . $HOME/.asdf/asdf.sh && \ |
| 34 | + asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git && \ |
| 35 | + asdf install ruby 3.2.2 && \ |
| 36 | + asdf global ruby 3.2.2 && \ |
| 37 | + asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git && \ |
| 38 | + asdf install nodejs 18.15.0 && \ |
| 39 | + asdf global nodejs 18.15.0 && \ |
| 40 | + asdf plugin add java https://github.com/halcyon/asdf-java.git && \ |
| 41 | + asdf install java zulu-17.42.19 && \ |
| 42 | + asdf global java zulu-17.42.19" |
| 43 | + |
| 44 | +COPY ./entrypoint.sh /entrypoint.sh |
| 45 | +RUN chmod a+x /entrypoint.sh |
| 46 | + |
| 47 | +ENTRYPOINT ["/entrypoint.sh"] |
0 commit comments