-
Notifications
You must be signed in to change notification settings - Fork 473
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
build: tidy dockerfile #1477
build: tidy dockerfile #1477
Conversation
Signed-off-by: tison <wander4096@gmail.com>
compactdb | ||
testdb | ||
|
||
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add .gitignore
content. Avoid build content conflict issues.
@@ -19,10 +19,6 @@ FROM alpine:3.16 as build | |||
|
|||
ARG MORE_BUILD_ARGS | |||
|
|||
# workaround tzdata install hanging | |||
ENV TZ=Etc/UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After switching to Alpine, we don't need this trick.
VOLUME /var/lib/kvrocks | ||
|
||
RUN chown kvrocks:kvrocks /var/lib/kvrocks | ||
COPY --from=build /kvrocks/build/kvrocks /bin/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplify a bit layout:
/bin/kvrocks
/bin/redis-cli
/kvrocks/<LICENSE/NOTICE>
/var/...
VOLUME /var/lib/kvrocks | ||
|
||
RUN chown kvrocks:kvrocks /var/lib/kvrocks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated above.
cc @aleksraiden may you verify this patch also. |
Awesome! LGTM |
Merging... Thanks for your review! |
Comments inline.