Created
May 10, 2020 14:04
-
-
Save dangtrinhnt/a6873f9dd12eed6d94d265f3c10c85be to your computer and use it in GitHub Desktop.
A sample Dockerfile for testing your application
This file contains 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=keycloak_flask.user | |
ENV FLASK_DEBUG=1 | |
ENV KEYCLOAK_FLASK_SETTINGS=local_settings.py | |
RUN pip install -r requirements.txt && | |
pip install -r test-requirements.txt | |
CMD ["pytest", "tests/"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment