le docker (it's easier to use docker on my server)
This commit is contained in:
parent
71a17f4252
commit
f3a9fcb53e
2 changed files with 13 additions and 0 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal 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
5
docker-compose.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
services:
|
||||||
|
backend:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "8868:8868"
|
Loading…
Reference in a new issue