mirror of
https://codeberg.org/privacy1st/MastodonTootFollower
synced 2024-12-22 23:06:05 +01:00
Dockerfile and docker-compose.yml
This commit is contained in:
parent
42b14e0e52
commit
1e147033af
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/.idea/
|
||||
/venv/
|
||||
/data/
|
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
11
docker-compose.yml
Normal 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" ]
|
Loading…
Reference in New Issue
Block a user