Skip to content

Instantly share code, notes, and snippets.

@kilfu0701
Created October 26, 2018 07:50
Show Gist options
  • Save kilfu0701/b98198f3c8fc6c8ccc79e07ebcc00b21 to your computer and use it in GitHub Desktop.
Save kilfu0701/b98198f3c8fc6c8ccc79e07ebcc00b21 to your computer and use it in GitHub Desktop.
  1. Dockerfile
FROM ubuntu:18.04
LABEL Maintainer="BoRu Su <[email protected]>"

RUN apt-get update \
  && apt-get install -y python3-pip python3-dev \
  && cd /usr/local/bin \
  && ln -s /usr/bin/python3 python \
  && pip3 install --upgrade pip

RUN pip install Django==2.1.2 pandas numpy bs4 pyyaml tensorflow

ENTRYPOINT ["python3"]
  1. Build image with tags
docker build -t kilfu0701/data-analysis .
  1. Push to DockerHub
docker push kilfu0701/data-analysis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment