summaryrefslogtreecommitdiff
path: root/docker/ruby/Dockerfile
blob: 44cd04e222fea5c554ace02fe68641d007f7970c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# start with a fresh official ruby image
# https://hub.docker.com/_/ruby/
FROM ruby:2.1-slim

MAINTAINER LEAP Encryption Access Project <info@leap.se>
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