Docker container now runs as included `node` user, rather than `root`

pull/138/head
tycrek 2 years ago
parent f36dc41291
commit ec745defde
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -23,7 +23,12 @@ RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
mkdir -p /opt/ass/share/ && \ mkdir -p /opt/ass/share/ && \
touch /opt/ass/config.json && \ touch /opt/ass/config.json && \
touch /opt/ass/auth.json && \ touch /opt/ass/auth.json && \
touch /opt/ass/data.json touch /opt/ass/data.json && \
# Set permissions for rootless user
chown -R node:node /opt/ass
# Set the user
USER node
# Start ass # Start ass
CMD npm start CMD npm start

Loading…
Cancel
Save