Skip to content

Instantly share code, notes, and snippets.

@sethbergman
Forked from pangyuteng/Dockerfile
Last active November 13, 2023 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sethbergman/4e3a512209143f39038a95e8c5d31a30 to your computer and use it in GitHub Desktop.
Save sethbergman/4e3a512209143f39038a95e8c5d31a30 to your computer and use it in GitHub Desktop.
docker miniconda ubuntu
# ref https://github.com/tebeka/pythonwise/blob/master/docker-miniconda/Dockerfile
FROM ubuntu:18.04
# System packages
RUN apt-get update && apt-get install -y curl && \
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm -f ~/miniconda.sh && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc && \
find /opt/conda/ -follow -type f -name '*.a' -delete && \
find /opt/conda/ -follow -type f -name '*.js.map' -delete && \
/opt/conda/bin/conda clean -afy
RUN conda update -y conda
# Python packages from conda
RUN conda install -c anaconda -y python=3.7.2
RUN conda install -c anaconda -y \
pip \
tensorflow-mkl=1.9.0 \
keras=2.2.2
# Setup application
#COPY imgsrv.py /
#ENTRYPOINT ["/miniconda/bin/python", "/imgsrv.py"]
#EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment