Last active
July 28, 2017 03:06
-
-
Save rhoboro/2fac2834a4c1ee9362c4689bd993cbcc to your computer and use it in GitHub Desktop.
GAE/pyのベースイメージ
This file contains hidden or 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
FROM ubuntu:16.04 | |
LABEL maintainer "rhoboro <[email protected]>" | |
ENV HOME /root | |
WORKDIR $HOME | |
RUN apt-get update -y \ | |
&& apt-get upgrade -y \ | |
&& apt-get install -y -q python2.7-mysqldb zip build-essential make curl python-dev wget libmysqlclient-dev python-configparser \ | |
&& wget https://bootstrap.pypa.io/get-pip.py \ | |
&& python get-pip.py | |
# mysql-serverを入れる際にrootパスワードを聞かれるのを回避する | |
RUN echo 'mysql-server mysql-server/root_password password root_password' | debconf-set-selections \ | |
&& echo 'mysql-server mysql-server/root_password_again password root_password' | debconf-set-selections \ | |
&& apt-get -y install mysql-server | |
RUN curl -o $HOME/google_appengine_1.9.53.zip https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.53.zip \ | |
&& unzip -q -d $HOME $HOME/google_appengine_1.9.53.zip | |
RUN curl -o $HOME/google-cloud-sdk-158.0.0-linux-x86_64.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-158.0.0-linux-x86_64.tar.gz \ | |
&& tar -zxvf $HOME/google-cloud-sdk-158.0.0-linux-x86_64.tar.gz \ | |
&& ./google-cloud-sdk/install.sh \ | |
&& echo "n" | ./google-cloud-sdk/bin/gcloud init | |
ENV PYTHONPATH $PYTHONPATH:$HOME/google_appengine | |
ENV PATH $PATH:$HOME/google_appengine:$HOME/google-cloud-sdk/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment