Created
November 12, 2021 22:07
-
-
Save shawnd/cf2790a02440a54bec38eb57c6ebeaf4 to your computer and use it in GitHub Desktop.
sdhawan/code-server-rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM jrei/systemd-debian:bullseye | |
| # Install | |
| RUN apt-get update -y && \ | |
| apt-get install -y git wget curl gnupg2 procps lsb-release net-tools redis-server nodejs npm && \ | |
| npm install -g yarn && \ | |
| wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ | |
| echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list && \ | |
| apt update -y && \ | |
| apt -y install postgresql-12 postgresql-client-12 libpq-dev && \ | |
| curl https://cli-assets.heroku.com/install.sh | sh && \ | |
| curl -fsSL https://code-server.dev/install.sh | sh | |
| # Install RVM and Ruby 2.7.4 | |
| RUN curl -sSL https://get.rvm.io | bash && \ | |
| /usr/local/rvm/bin/rvm install 2.7.4 && \ | |
| /usr/local/rvm/bin/rvm --default use 2.7.4 | |
| # Copy Entrypoint | |
| COPY entrypoint.sh /usr/bin/entrypoint.sh | |
| RUN chmod +x /usr/bin/entrypoint.sh | |
| ENV USER=root | |
| # Can't change this, else systemd != PID:1 | |
| CMD ["/lib/systemd/systemd"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment