24 lines
750 B
Docker
24 lines
750 B
Docker
FROM mcr.microsoft.com/devcontainers/base:debian-12
|
|
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -qqy \
|
|
build-essential \
|
|
autoconf \
|
|
libssl-dev \
|
|
libyaml-dev \
|
|
zlib1g-dev \
|
|
libffi-dev \
|
|
libgmp-dev \
|
|
rustc \
|
|
watchman \
|
|
libsqlite3-dev \
|
|
pkg-config
|
|
USER vscode
|
|
RUN git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
|
ENV PATH="/home/vscode/.rbenv/bin:/home/vscode/.rbenv/shims:$PATH"
|
|
RUN echo 'eval "$(rbenv init - --no-rehash bash)"' >> ~/.bashrc
|
|
RUN git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
|
|
RUN rbenv install 3.4.4 && \
|
|
rbenv global 3.4.4
|
|
|
|
# convenience aliases
|
|
RUN echo 'alias rspec="bundle exec rspec"' >> ~/.bashrc
|