Created
June 15, 2021 18:42
-
-
Save rafaelnovello/927644892faafbe90ee388813d58d126 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference: https://hub.docker.com/_/ubuntu/ | |
FROM python:3.8-slim-buster | |
# Adds metadata to the image as a key value pair example LABEL version="1.0" | |
LABEL maintainer="Rafael Novello <[email protected]>" | |
# Set environment variables | |
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | |
# Create empty directory to attach volume | |
RUN mkdir ~/prjs | |
# Install Ubuntu packages | |
RUN apt-get update && apt-get install -y \ | |
wget \ | |
bzip2 \ | |
ca-certificates \ | |
build-essential \ | |
curl \ | |
git \ | |
htop \ | |
vim \ | |
pkg-config \ | |
unzip \ | |
python-pip && \ | |
# Clean up | |
apt-get clean && rm -rf /var/lib/apt/lists/* && \ | |
# Update pip | |
pip install -U pip && \ | |
# Install data science libs | |
pip install jupyterlab \ | |
pandas \ | |
scikit-learn \ | |
matplotlib \ | |
seaborn \ | |
imbalanced-learn \ | |
# Configure access to Jupyter | |
WORKDIR /root/prjs | |
EXPOSE 8888 | |
EXPOSE 8000 | |
CMD jupyter lab --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token='data-science' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment