Skip to content

Instantly share code, notes, and snippets.

@Wei1234c
Last active September 4, 2015 02:02
Show Gist options
  • Save Wei1234c/6e1bf5e0453c8779d2da to your computer and use it in GitHub Desktop.
Save Wei1234c/6e1bf5e0453c8779d2da to your computer and use it in GitHub Desktop.
Dockerfile for Python
# Python Dockerfile
#
# https://github.com/dockerfile/python
# https://raw.githubusercontent.com/dockerfile/python/master/Dockerfile
#
# modified by: Wei Lin
# date: 2015/9/3
# Pull base image.
FROM armv7/armhf-ubuntu:14.04
MAINTAINER Wei Lin
ENV TERM linux
# Install Python.
RUN apt-get update && \
apt-get install -y python3 python3-pip python3-dev python3-numpy python3-scipy python3-matplotlib python3-pandas && \
apt-get install -y python python-pip python-dev
# Upgrade and clean up
RUN apt-get dist-upgrade -y && \
apt-get autoremove -y && \
apt-get autoclean -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# Define working directory.
WORKDIR /data
# Environment variables
RUN echo " " >> /etc/bash.bashrc && \
echo "#_____________________" >> /etc/bash.bashrc && \
echo "force_color_prompt=yes" >> /etc/bash.bashrc && \
echo "alias cls='clear'" >> /etc/bash.bashrc && \
echo "export TERM=linux" >> /etc/bash.bashrc
# Define default command.
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment