2017-11-07 13:41:38 +00:00
|
|
|
############################################################
|
|
|
|
# Dockerfile for base python environment
|
|
|
|
############################################################
|
|
|
|
|
|
|
|
# Set the base image to use debian
|
2019-01-09 17:55:47 +00:00
|
|
|
FROM debian:stretch
|
2017-11-07 13:41:38 +00:00
|
|
|
|
|
|
|
# Set the file maintainer
|
|
|
|
MAINTAINER rst/tgu
|
|
|
|
|
|
|
|
# install packages and clean up
|
|
|
|
RUN printf "Starting update...\n" && \
|
|
|
|
apt-get update -qq && \
|
|
|
|
printf "Update finished.\n" && \
|
|
|
|
printf "Starting dist-upgrade...\n" && \
|
|
|
|
apt-get dist-upgrade -y > /dev/null && \
|
|
|
|
printf "Upgrade finished.\n" && \
|
|
|
|
printf "Starting install...\n" && \
|
|
|
|
apt-get install -y \
|
|
|
|
build-essential \
|
|
|
|
netbase \
|
|
|
|
iproute2 \
|
2019-01-14 01:15:06 +00:00
|
|
|
python-setuptools \
|
2017-11-07 13:41:38 +00:00
|
|
|
python-pip \
|
|
|
|
python-dev \
|
|
|
|
jq > /dev/null && \
|
|
|
|
apt-get clean && \
|
|
|
|
printf "Installation and cleanup finished.\n"
|
|
|
|
|
|
|
|
# set user
|
|
|
|
USER root
|
|
|
|
|
|
|
|
# entry point
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|