# start with a fresh official ruby image # https://hub.docker.com/_/ruby/ FROM ruby:2.1-slim MAINTAINER LEAP Encryption Access Project LABEL Description="Ruby 2.1 including sudo and build tools to build leap_cli etc" Vendor="LEAP" Version="1.0" # for unknown reason, "rake install" fails in docker, even if the userid is 0 # so we need to install sudo to use "sudo rake install" RUN apt-get update RUN apt-get -y install sudo # install leap_cli prerequisites, see https://0xacab.org/leap/leap_cli RUN apt-get -y install git ruby ruby-dev rsync openssh-client openssl rake gcc make zlib1g-dev