coder-enterprise-images/deprecated/ruby/Dockerfile.ubuntu

19 lines
441 B
Docker

FROM codercom/enterprise-base:ubuntu
# Run everything as root
USER root
# Install OpenSSL library
RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \
apt-get install -y libssl-dev
# Install Ruby from source
COPY ./install-ruby.sh /tmp
RUN chmod +x /tmp/install-ruby.sh && /tmp/install-ruby.sh
COPY deprecated.txt /etc/motd
RUN echo '[ ! -z "$TERM" ] && cat /etc/motd' >> /etc/bash.bashrc
# Set back to coder user
USER coder