startup and install apps as non-root user

This commit is contained in:
Lawrence
2018-01-13 10:44:22 -05:00
parent 099d1a1239
commit ebd7a7bced
2 changed files with 12 additions and 9 deletions

View File

@@ -11,12 +11,10 @@ RUN apt-get update \
&& rm -rf lzma1604 \
&& npm install -g forever
RUN npm install greenlock-cli \
RUN adduser --quiet meshcentral \
&& chmod +x /startmeshcentral.sh \
&& adduser --quiet meshcentral
RUN su - meshcentral \
&& npm install meshcentral node-7z
&& su - meshcentral \
&& npm install meshcentral node-7z greenlock-cli
ENV PORT 443
ENV REDIRPORT 80