From f9df8c7fab5ce46489624db16a5299ac437aaa13 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 26 Aug 2021 10:53:53 -0700 Subject: [PATCH] fix(production): Running Docker as root --- production/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/production/Dockerfile b/production/Dockerfile index 3b60e8a..01f8e61 100644 --- a/production/Dockerfile +++ b/production/Dockerfile @@ -23,9 +23,9 @@ WORKDIR /home/safeuser #RUN runuser -l safeuser -c "npm config set prefix '~/.npm-global'" # Switch to user account. -USER safeuser +#USER safeuser # Prep 'sudo' commands. -RUN echo 'abcd8765' | sudo -S pwd +#RUN echo 'abcd8765' | sudo -S pwd # Clone the rest.bitcoin.com repository WORKDIR /home/safeuser @@ -39,7 +39,7 @@ WORKDIR /home/safeuser/ipfs-service-provider RUN git checkout ct-unstable # Install dependencies -RUN mkdir .ipfsdata +#RUN mkdir .ipfsdata RUN npm install -g @mapbox/node-pre-gyp RUN npm install