Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aagnone3/a4ad90197308e5132b8219b033bb75d6 to your computer and use it in GitHub Desktop.
Save aagnone3/a4ad90197308e5132b8219b033bb75d6 to your computer and use it in GitHub Desktop.
# an example Dockerfile
# you can specify a base image as a foundation to build on
FROM ubuntu:16.04
# make a partition, and specify the working directory
VOLUME /opt
WORKDIR /opt
# install some base system packages
RUN apt-get update && apt-get install -y \
python3 \
python3-dev \
python3-pip \
python3-setuptools
# install some python packages
RUN pip3 install --upgrade pip
RUN pip3 install \
scikit-learn==0.21.1 \
pandas==0.19.1
# set the container's entry point, just a bash shell for now.
# this can also be a single program to run, i.e. a python script.
ENTRYPOINT ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment