From 7d904501c132d3d8fba57944f23c2436d2f336f3 Mon Sep 17 00:00:00 2001 From: paprykdev <58005447+paprykdev@users.noreply.github.com> Date: Tue, 12 Nov 2024 05:29:24 +0100 Subject: [PATCH] fix: update Dockerfile to remove docker installation and set user permissions --- app/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index c6d92f0..f1662d6 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -11,7 +11,6 @@ RUN apt-get update && apt-get install -y \ wget \ unzip \ curl \ - docker \ libx11-dev \ libgdk-pixbuf2.0-0 \ libcanberra-gtk-module \ @@ -20,7 +19,8 @@ RUN apt-get update && apt-get install -y \ && mv chromedriver /usr/local/bin/ \ && chmod +x /usr/local/bin/chromedriver -# RUN chown -R python /usr/src/app -# USER python +RUN useradd python +RUN chown -R python /usr/src/app +USER python CMD ["python", "main.py"] \ No newline at end of file