-
Notifications
You must be signed in to change notification settings - Fork 102
/
Dockerfile.dx
28 lines (21 loc) · 1000 Bytes
/
Dockerfile.dx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ARG RUBY_VERSION
FROM ruby:${RUBY_VERSION}
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update
# dx.snippet.start=templates/snippets/bundler/latest__bundler.dockerfile-snippet
# Based on documentation at https://guides.rubygems.org/command-reference/#gem-update
# based on the vendor's documentation
RUN echo "gem: --no-document" >> ~/.gemrc && \
gem update --system && \
gem install bundler
# dx.snippet.end=templates/snippets/bundler/latest__bundler.dockerfile-snippet
# dx.snippet.start=templates/snippets/vim/bullseye_vim.dockerfile-snippet
# Based on documentation at https://packages.debian.org/search?keywords=vim
# based on the vendor's documentation
ENV EDITOR=vim
RUN apt-get install -y vim && \
echo "set -o vi" >> /root/.bashrc
# dx.snippet.end=templates/snippets/vim/bullseye_vim.dockerfile-snippet
# This entrypoint produces a nice help message and waits around for you to do
# something with the container.
COPY dx/show-help-in-app-container-then-wait.sh /root