Skip to content

Commit

Permalink
Create home dir for user pptr.
Browse files Browse the repository at this point in the history
Running npm (ex npm test, or npx {script}) resulted in an error about
not being able to write to log files. Apparently this was introduced at
some point by an npm update. The reson for the error was that the
default location for the loga files is ~/.npm, but since the pptr user
did not have a home directory, the log files could not be created. To
fix this, the pptr user now has a home directory.

npm/cli#4838 (comment)
  • Loading branch information
Buzu committed Jun 10, 2023
1 parent 684c1de commit 2f0b649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Puppeteer/10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14
FROM node:16

RUN apt-get update \
&& apt-get install -y \
Expand Down Expand Up @@ -39,6 +39,6 @@ RUN apt-get update \
lsb-release \
wget \
xdg-utils \
&& groupadd -r pptr && useradd -r -g pptr -G audio,video pptr
&& groupadd -r pptr && useradd -r -g pptr -G audio,video -m pptr

USER pptr

0 comments on commit 2f0b649

Please sign in to comment.