|
|
|
@ -17,7 +17,7 @@ COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/filer_rocksdb. |
|
|
|
COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/entrypoint.sh /entrypoint.sh |
|
|
|
|
|
|
|
# Install dependencies and create non-root user |
|
|
|
RUN apk add --no-cache fuse snappy gflags tmux && \ |
|
|
|
RUN apk add --no-cache fuse snappy gflags tmux su-exec && \ |
|
|
|
addgroup -g 1000 seaweed && \ |
|
|
|
adduser -D -u 1000 -G seaweed seaweed |
|
|
|
|
|
|
|
@ -48,7 +48,5 @@ VOLUME /data |
|
|
|
|
|
|
|
WORKDIR /data |
|
|
|
|
|
|
|
# Switch to non-root user |
|
|
|
USER seaweed |
|
|
|
|
|
|
|
# Entrypoint will handle permission fixes and user switching |
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |