fix: update Dockerfile to remove docker installation and set user permissions
This commit is contained in:
parent
04b9a5cd0c
commit
7d904501c1
@ -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"]
|
Loading…
Reference in New Issue
Block a user