Files
baselines/Dockerfile

25 lines
563 B
Docker
Raw Permalink Normal View History

FROM ubuntu:16.04
2018-08-10 14:14:46 -07:00
RUN apt-get -y update && apt-get -y install git wget python-dev python3-dev libopenmpi-dev python-pip zlib1g-dev cmake python-opencv
ENV CODE_DIR /root/code
ENV VENV /root/venv
RUN \
pip install virtualenv && \
virtualenv $VENV --python=python3 && \
. $VENV/bin/activate && \
2018-08-10 14:14:46 -07:00
pip install --upgrade pip
ENV PATH=$VENV/bin:$PATH
2018-08-10 14:14:46 -07:00
COPY . $CODE_DIR/baselines
WORKDIR $CODE_DIR/baselines
2018-08-10 14:14:46 -07:00
# Clean up pycache and pyc files
RUN rm -rf __pycache__ && \
find . -name "*.pyc" -delete && \
pip install -e .[test]
CMD /bin/bash