Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove user and group from Docker #1513

Merged
merged 4 commits into from
Jun 23, 2023
Merged
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
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ RUN ./x.py build -DENABLE_OPENSSL=ON -DPORTABLE=ON -DCMAKE_BUILD_TYPE=Release -j
FROM alpine:3.16

RUN apk upgrade && apk add libexecinfo
RUN mkdir /var/run/kvrocks && mkdir /var/lib/kvrocks
RUN addgroup -S kvrocks && adduser -D -H -S -G kvrocks kvrocks
RUN chown kvrocks:kvrocks /var/run/kvrocks
RUN mkdir /var/run/kvrocks

USER kvrocks
VOLUME /var/lib/kvrocks

COPY --from=build /kvrocks/build/kvrocks /bin/
Expand Down