Dockerfile and docker-compose.yml

This commit is contained in:
Daniel Langbein 2022-12-12 21:27:34 +01:00
parent 42b14e0e52
commit 1e147033af
3 changed files with 23 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/.idea/ /.idea/
/venv/ /venv/
/data/

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM python:3.10
WORKDIR /app
COPY . /app
RUN pip install -r requirements.txt
ENV PYTHONPATH=/app/src
EXPOSE 5000
ENTRYPOINT [ "python3" ]
CMD [ "src/mastodon_toot_follower/server/waitress_server.py" ]

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: '3.9'
services:
mtf:
build: .
container_name: mtf
ports:
- '5000:5000'
volumes:
- ./data:/root/.MastodonTootFollower
# command: [ "src/mastodon_toot_follower/server/flask_server.py" ]
command: [ "src/mastodon_toot_follower/server/waitress_server.py" ]