mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-22 20:25:13 +03:00
🐳 add user in dockerfile
This commit is contained in:
parent
bb4658e16c
commit
4f4f9963c7
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user