FROM debian:stretch
RUN apt-get update && apt-get install -y libs3-dev build-essential

ADD "rhymes_and_reason.cpp" "rhymes_and_objects.cpp" "/home/rhymes/"
RUN g++ --std=c++98 /home/rhymes/rhymes_and_reason.cpp -o /home/rhymes/rhymes_and_reason
RUN g++ --std=c++98 /home/rhymes/rhymes_and_objects.cpp -o /home/rhymes/rhymes_and_objects -ls3

RUN apt-get autoremove --purge -y build-essential

ENTRYPOINT []
