From f3a9fcb53ed0e86b4ece082971a6a307c42fca3d Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Thu, 29 Jun 2023 21:22:15 +0200 Subject: [PATCH] le docker (it's easier to use docker on my server) --- Dockerfile | 8 ++++++++ docker-compose.yml | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..86da4e7 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5a6b3d5 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,5 @@ +services: + backend: + build: . + ports: + - "8868:8868"