From a3a320b3c1e09efd85b8a40251a6537f14c64269 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 11 Jul 2024 20:46:23 +0200 Subject: [PATCH] Update dockerfile --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 79c1fad..c445f6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,13 @@ FROM python:3.12 -COPY requirements.txt . -RUN python -m pip install -r requirements.txt + +# Copy files and install dependencies +WORKDIR /app COPY . . +RUN python -m pip install -r requirements.txt + +# Disable log buffering ENV PYTHONBUFFERED=1 + +# Set entrypoint with 'src.daemon' as the default argument ENTRYPOINT ["python", "-m"] +CMD ["src.daemon"]