Created
November 4, 2015 01:39
-
-
Save Yaiba/3efd4d25b2700ef2464a to your computer and use it in GitHub Desktop.
python2.7 runtime using alpine
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
# DOCKER_VERSION 1.8.3 | |
# DESCRIPTION: alpine python runtime | |
FROM gliderlabs/alpine:3.2 | |
MAINTAINER Yaiba | |
RUN apk-install --update \ | |
python \ | |
python-dev \ | |
py-pip \ | |
build-base \ | |
&& pip install virtualenv \ | |
&& rm -rf /var/cache/apk/* | |
ENV HOME /app | |
WORKDIR $HOME | |
ONBUILD COPY . $HOME | |
ONBUILD RUN virturalenv /env \ | |
&& /env/bin/pip install -r $HOME/requirements.txt \ | |
&& rm -rf $HOME/.cache/pip/* | |
EXPOSE 8080 | |
CMD ["/env/bin/python", "app.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment