diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6d37d5c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +* +!src +!static +!templates +!requirements.txt diff --git a/Makefile b/Makefile index e2d5212..4cb0037 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,11 @@ dev: requirements.txt ## Starts a development webserver. export PYTHONPATH="${PYTHONPATH}:src" python3 src/mastodon_toot_follower/server/flask_server.py +.PHONY: docker-image +docker-image: ## Builds the mastodon-toot-follower:latest Docker image. + sudo docker build --pull \ + --tag mastodon-toot-follower:latest . + .PHONY: cli cli: requirements.txt ## Runs the commandline version. source venv/bin/activate