Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Pod Security Policy fix for kube-slack container #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ yarn.lock
config/local*.yaml
.vscode
build/
.idea
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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", "."]