FROM python:3.6-slim

WORKDIR /home
COPY ./ .

RUN apt update && apt install -y libpng-dev libfreetype6-dev pkg-config git g++ python3-tk
RUN pip install -U pip && pip install -r requirements.txt

ENV PYTHONPATH "${PYTHONPATH}:/home:/home/rllab"
RUN python cpo/experiments/CPO_circuit.py
RUN chmod u+x compile.sh && ./compile.sh