diff --git a/.gitignore b/.gitignore index c177b4f..e19b34a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ yarn.lock config/local*.yaml .vscode build/ +.idea diff --git a/Dockerfile b/Dockerfile index 9245a0f..1fdef82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN npm run build FROM node:10-alpine # Don't run as root user ENV user kube-slack -RUN addgroup -S $user && adduser -S -g $user $user +RUN addgroup -S $user && adduser -S -g $user $user --uid 2000 WORKDIR /app COPY package.json /app @@ -20,6 +20,6 @@ COPY --from=build /app/build/ /app COPY config/ /app/config/ RUN chown -R $user:$user /app -USER $user +USER 2000 CMD ["node", "."]