From fe7fd4770d200c149cec61fb5d665520fb6710ac Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Wed, 14 Dec 2022 18:24:18 +0100 Subject: [PATCH] .dockerignore --- .dockerignore | 5 +++++ Makefile | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .dockerignore 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