25 lines
870 B
Docker
25 lines
870 B
Docker
FROM archlinux:latest
|
|
|
|
# Link in our build files to the docker image
|
|
COPY environment.yml /
|
|
|
|
#EXPORT DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Run all ubuntu updates and apt-get installs
|
|
RUN pacman -Syu --noconfirm base-devel jupyter python wget bzip2 opencv glu libxinerama
|
|
|
|
RUN wget -O /tmp/Anaconda3.sh https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh &&\
|
|
chmod +x /tmp/Anaconda3.sh
|
|
|
|
RUN /tmp/Anaconda3.sh -b -p /opt/conda
|
|
ENV PATH="/opt/conda/bin:${PATH}"
|
|
|
|
#ENV PY3PATH=/opt/conda/anaconda3/bin
|
|
|
|
RUN conda install jupyter -y --quiet
|
|
RUN conda init bash
|
|
RUN conda env update --file /environment.yml --prune
|
|
RUN python -m ipykernel install --user --name=gc_course_env
|
|
|
|
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "gc_course_env", "jupyter-notebook", "--notebook-dir=/opt/notebooks", "--ip='*'","--port=8888","--no-browser","--allow-root"]
|