# Start with Ubuntu 16.04 (LTS), and build badssl.com up from there
FROM ubuntu:16.04
MAINTAINER TSG
RUN sed -i s@/archive.ubuntu.com/@/mirrors.163.com/@g /etc/apt/sources.list \
&& apt-get clean \
&& apt-get update \
&& apt-get install -y apt-transport-https \
&& apt-get install -y software-properties-common \
&& apt-add-repository ppa:brightbox/ruby-ng \
&& apt-get install -y \
build-essential \
git \
libffi-dev \
make \
nginx \
ruby2.6 \
ruby2.6-dev \
net-tools \
iputils-ping \
faketime \
&& gem update --system 3.1.6 \
&& gem install jekyll
# Install badssl.com
ADD . badssl.com
WORKDIR badssl.com
# Start things up!
CMD tail -f /dev/null