# BiBiFi Docker Image

# Run using
#  docker build --tag bibifi
#  docker run --rm -it bibifi

# This should open a `bash` shell, where the directory containing this
# Dockerfile can be accessed via the `/connect` directory.

FROM ubuntu:18.04
MAINTAINER Jay Bosamiya <jaybosamiya@cmu.edu>
ENV REFRESH_DATE "2020-01-05"

RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt-get install -y sudo

RUN apt-get install -y build-essential ocaml python python3
RUN apt-get install -y software-properties-common curl
RUN apt-get install -y openssl

RUN apt-get install -y libprotobuf-c0-dev libprotobuf-dev libprotoc-dev protobuf-compiler
RUN apt-get install -y libssl-dev
RUN apt-get install -y haveged rng-tools
RUN apt-get install -y python-gevent
RUN apt-get install -y clang
RUN apt-get install -y cmake libssl-dev zlib1g-dev libcppunit-dev llvm
RUN apt-get install -y libssh-dev
RUN apt-get install -y build-essential libssl-dev libffi-dev python libcrypto++-dev
RUN apt-get install -y libmbedtls-dev
RUN apt-get install -y libnacl-dev

RUN apt-get install -y libsodium-dev
RUN apt-get install -y uthash-dev libjansson-dev libgcrypt11-dev libatdgen-ocaml-dev libcryptokit-ocaml-dev
RUN rm /dev/random && ln -s /dev/urandom /dev/random

# NOT_ON_SERV_START
RUN mkdir /connect
COPY . /connect
WORKDIR /connect
CMD "/bin/bash"
# NOT_ON_SERV_END
