π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
:whale: refactor to add user
Jeremy Chauvinbbbcd09b448a
diff --git a/Dockerfile b/Dockerfileindex af6f2350..e785e887 100644--- a/Dockerfile+++ b/Dockerfile@@ -31,22 +31,31 @@ FROM node:16.13.2-alpineENV PORT=80 \DIRECTORY=/app \IS_DOCKER=true \- UID=1000 \- GUID=1000+ USER=docker \+ UID=12345 \+ GID=23456-# Create a group and user-RUN addgroup --gid ${GUID} application \- && adduser --no-create-home --uid ${UID} application application+# Install tini for initialization and tzdata for setting timezone+RUN apk add --no-cache tzdata tini \+ # Add group+ && addgroup --gid ${GID} "${USER}" \+ # Add user+ && adduser \+ --disabled-password \+ --ingroup "${USER}" \+ --gecos "" \+ --home "${DIRECTORY}" \+ --no-create-home \+ --uid "$UID" \+ "$USER"++USER ${USER}-USER application# Create and set the working directoryWORKDIR ${DIRECTORY}-# Install tini for initialization and tzdata for setting timezone-RUN apk add --no-cache tzdata tini-# Copy built application from build phase-COPY --from=BUILD_IMAGE /app ./+COPY --from=BUILD_IMAGE --chown=${USER}:${USER} /app ./# Finally, run start command to serve up the built applicationENTRYPOINT [ "/sbin/tini", "--" ]