Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:whale: add user in dockerfile

Singebob4f4f9963c784
diff --git a/Dockerfile b/Dockerfile
index ebb6f41c..af6f2350 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -30,8 +30,15 @@ FROM node:16.13.2-alpine
# Define some ENV Vars
ENV PORT=80 \
DIRECTORY=/app \
- IS_DOCKER=true
+ IS_DOCKER=true \
+ UID=1000 \
+ GUID=1000
+# Create a group and user
+RUN addgroup --gid ${GUID} application \
+ && adduser --no-create-home --uid ${UID} application application
+
+USER application
# Create and set the working directory
WORKDIR ${DIRECTORY}