Created
February 9, 2019 22:38
-
-
Save vmrob/de2c5567eac7a3f5b6cfa62a1e4a4267 to your computer and use it in GitHub Desktop.
Python docker template
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
version: '3' | |
services: | |
runner: | |
build: | |
context: . | |
dockerfile: Dockerfile |
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-alpine | |
COPY entrypoint.py /app/entrypoint.py | |
WORKDIR /app | |
ENTRYPOINT ["python3", "/app/entrypoint.py"] |
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
#!/usr/bin/env python3 | |
print('hello world!') |
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
build: | |
docker-compose build | |
run: | |
docker-compose up | |
stop: | |
docker-compose stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment