.dockerignore

This commit is contained in:
Daniel Langbein 2022-12-14 18:24:18 +01:00
parent 4793464be0
commit fe7fd4770d
2 changed files with 10 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
*
!src
!static
!templates
!requirements.txt

View File

@ -26,6 +26,11 @@ dev: requirements.txt ## Starts a development webserver.
export PYTHONPATH="${PYTHONPATH}:src" export PYTHONPATH="${PYTHONPATH}:src"
python3 src/mastodon_toot_follower/server/flask_server.py 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 .PHONY: cli
cli: requirements.txt ## Runs the commandline version. cli: requirements.txt ## Runs the commandline version.
source venv/bin/activate source venv/bin/activate