Created
May 10, 2020 13:47
-
-
Save dangtrinhnt/28e0ba161e266196b85d908742c3e777 to your computer and use it in GitHub Desktop.
Sample Dockerfile to run a python application
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 python:3.7-stretch | |
LABEL maintainer="Trinh Nguyen <[email protected]>" | |
WORKDIR /keycloak_flask | |
COPY . /keycloak_flask | |
ENV FLASK_APP=apps.keycloak_flask.user | |
ENV KEYCLOAK_FLASK_SETTINGS=local_settings.py | |
RUN pip install -r requirements.txt | |
ENTRYPOINT ["flask"] | |
CMD ["run", "--host=0.0.0.0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment