Public Repository

Last pushed: 2 years ago
Short Description
ubuntu + python3.5 + mysql(mariadb) 5
Full Description

Dockerfile

FROM ubuntu

### set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

### setup some essential packages
RUN sudo apt-get install -y wget
RUN sudo apt-get install -y sudo
RUN sudo apt-get install -y libmagickwand-dev # for time-saving

### setup mysql
ENV MYSQL_ROOT_PASSWORD my_secret_pw
RUN sudo bash -c 'debconf-set-selections <<< "mysql-server mysql-server/root_password password $MYSQL_ROOT_PASSWORD"'
RUN sudo bash -c 'debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $MYSQL_ROOT_PASSWORD"'
RUN sudo apt-get -y install mariadb-server

### setup python 3.5
RUN sudo apt-get install -y software-properties-common
RUN sudo add-apt-repository -y ppa:fkrull/deadsnakes
RUN sudo apt-get update
RUN sudo apt-get install -y python3.5
Docker Pull Command
Owner
hdformat

Comments (0)