From 2b34590005b2129e0f3d652307b29857bc788a0f Mon Sep 17 00:00:00 2001 From: bassamadnan Date: Sun, 18 Aug 2024 03:47:35 +0530 Subject: [PATCH] [add] Dockerfile --- backend/Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 backend/Dockerfile diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..fbdb8e6 --- /dev/null +++ b/backend/Dockerfile @@ -0,0 +1,22 @@ +FROM python:3.10.12-slim + +WORKDIR /app + +RUN apt-get update && apt-get install -y \ + libgl1-mesa-glx \ + libglib2.0-0 \ + && rm -rf /var/lib/apt/lists/* + +COPY . /app + +RUN chmod +x run.sh + +RUN pip install --no-cache-dir -r requirements.txt +RUN pip uninstall uvcorn +RUN mkdir ../images + +EXPOSE 8000 + +ENV WORKERS=1 + +CMD ["./run.sh"]