Skip to content

Commit

Permalink
Don't run as root, causes Chrome issues
Browse files Browse the repository at this point in the history
  • Loading branch information
claabs authored and Ricardo-Osorio committed Jan 11, 2020
1 parent 8384e94 commit 2fcd560
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ RUN pip install selenium
# add the script to where selenium is installed
ADD main.py /usr/local/lib/python3.7/site-packages

RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser

# run the script
CMD [ "python3.7", "/usr/local/lib/python3.7/site-packages/main.py"]

0 comments on commit 2fcd560

Please sign in to comment.