Skip to content

Commit

Permalink
chore: revert changes to initializer dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Nov 10, 2024
1 parent 44c4ece commit 6b6961c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker/initializer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ COPY . .
RUN make initializer

# Export the binary to the clean image.
# TODO(zyy17): Maybe should use the more secure container image.
FROM ubuntu:22.04 as base

WORKDIR /greptimedb-operator
COPY --from=builder /greptimedb-operator/bin/greptimedb-initializer /greptimedb-operator/bin/

# Use non-root user and group to run the initializer. `65532` will be nobody in the container.
USER 65532:65532

ENV PATH=/greptimedb-operator/bin/:$PATH

0 comments on commit 6b6961c

Please sign in to comment.