Last active
December 10, 2017 22:25
-
-
Save msoedov/a349c1861765108b478eba617da8a566 to your computer and use it in GitHub Desktop.
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
dockerfile = """ | |
FROM python:{py_version} | |
MAINTAINER {maintainer} | |
WORKDIR /app | |
RUN pip install {requirements} | |
ENV PY_LIB "{app_content | encode_base64}" | |
RUN python -c "import os,base64;b=os.getenv('PY_LIB');b=base64.b64decode(b);print(b.decode('utf-8'))" | tee app.py | |
CMD python app.py | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment