Skip to content

Instantly share code, notes, and snippets.

@shawnd
Created November 12, 2021 22:07
Show Gist options
  • Select an option

  • Save shawnd/cf2790a02440a54bec38eb57c6ebeaf4 to your computer and use it in GitHub Desktop.

Select an option

Save shawnd/cf2790a02440a54bec38eb57c6ebeaf4 to your computer and use it in GitHub Desktop.

Revisions

  1. shawnd created this gist Nov 12, 2021.
    26 changes: 26 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    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"]