From ca897cac2adff5cb0f0fe71635631e719b353a7b Mon Sep 17 00:00:00 2001 From: Paillat Date: Sun, 16 Jul 2023 20:48:07 +0200 Subject: [PATCH] chore(Dockerfile): remove trailing slash in WORKDIR path to improve consistency chore(Dockerfile): update chown command to apply ownership to the entire /Botator directory instead of just /Botator/code --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ca757f..27729ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ ENV PYTHONUNBUFFERED=1 COPY requirements.txt . RUN pip install -r requirements.txt RUN git clone https://github.com/Paillat-dev/Botator.git -WORKDIR /Botator/ +WORKDIR /Botator # Creates a non-root user with an explicit UID and adds permission to access the /app folder -RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /Botator/code +RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /Botator USER appuser CMD ["python", "main.py"] \ No newline at end of file