Skip to content

Instantly share code, notes, and snippets.

@dangtrinhnt
Created May 10, 2020 13:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Sample Dockerfile to run a python application
FROM python:3.7-stretch
LABEL maintainer="Trinh Nguyen <dangtrinhnt@gmail.com>"
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