le docker (it's easier to use docker on my server)

This commit is contained in:
magmaus3 2023-06-29 21:22:15 +02:00
parent 71a17f4252
commit f3a9fcb53e
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251
2 changed files with 13 additions and 0 deletions

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM python:3.11
WORKDIR /app
COPY . .
RUN pip install .
CMD python3 -m uvicorn lemmyprivacycheck.__main__:app --host 0.0.0.0:8868
# CMD python3 -m gunicorn -w 4 -b 0.0.0.0 -k uvicorn.workers.UvicornWorker backend.main:app --reload

5
docker-compose.yml Normal file
View file

@ -0,0 +1,5 @@
services:
backend:
build: .
ports:
- "8868:8868"