fix: update Dockerfile to remove docker installation and set user permissions

This commit is contained in:
patilk 2024-11-12 05:29:24 +01:00
parent 04b9a5cd0c
commit 7d904501c1
Signed by: s500042
GPG Key ID: 1921AD722E7392EE

View File

@ -11,7 +11,6 @@ RUN apt-get update && apt-get install -y \
wget \ wget \
unzip \ unzip \
curl \ curl \
docker \
libx11-dev \ libx11-dev \
libgdk-pixbuf2.0-0 \ libgdk-pixbuf2.0-0 \
libcanberra-gtk-module \ libcanberra-gtk-module \
@ -20,7 +19,8 @@ RUN apt-get update && apt-get install -y \
&& mv chromedriver /usr/local/bin/ \ && mv chromedriver /usr/local/bin/ \
&& chmod +x /usr/local/bin/chromedriver && chmod +x /usr/local/bin/chromedriver
# RUN chown -R python /usr/src/app RUN useradd python
# USER python RUN chown -R python /usr/src/app
USER python
CMD ["python", "main.py"] CMD ["python", "main.py"]