|
FROM ubuntu:18.04 |
|
|
|
|
|
|
|
RUN sed -i "s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list && \ |
|
apt-get update && apt-get install -y build-essential |
|
|
|
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \ |
|
libglib2.0-0 libxext6 libsm6 libxrender1 \ |
|
git mercurial subversion zip unzip |
|
|
|
|
|
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 |
|
|
|
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \ |
|
wget --quiet https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh -O ~/anaconda.sh && \ |
|
/bin/bash ~/anaconda.sh -b -p /opt/conda && \ |
|
rm ~/anaconda.sh |
|
|
|
ENV PATH /opt/conda/bin:$PATH |
|
|
|
RUN apt-get update && apt-get install -y libglu1 |
|
|
|
RUN pip install opencv-python |
|
|
|
RUN conda install pytorch-cpu==1.1.0 torchvision-cpu==0.3.0 cpuonly -c pytorch |
|
|
|
SHELL ["/bin/bash", "-c"] |
|
|
|
WORKDIR /work |
|
|
|
|
|
COPY . /work/ |
|
|
|
RUN chmod +x /work/predict.sh |
|
|
|
ENTRYPOINT [ "/work/predict.sh" ] |