mattermost-community-enterp.../Dockerfile.local
Claude 7e5c7b8c36 Add documentation and local build Dockerfile
- README.md: Build and deployment guide for beginners
- Extend-Function.md: Extended files list and version upgrade guide
- Unlock-License.md: License check removal documentation
- Dockerfile.local: Local source build support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 01:12:27 +09:00

30 lines
825 B
Docker

FROM rockylinux:9 AS builder
# Install build dependencies
RUN dnf install -y git golang make gcc
# Copy local source
WORKDIR /build
COPY . .
# Build
RUN go build -v -mod=vendor -o mattermost ./cmd/mattermost
# Runtime image
FROM rockylinux:9-minimal
RUN microdnf install -y ca-certificates tzdata && microdnf clean all
WORKDIR /mattermost
COPY --from=builder /build/mattermost /mattermost/bin/mattermost
COPY --from=builder /build/config /mattermost/config
COPY --from=builder /build/i18n /mattermost/i18n
COPY --from=builder /build/fonts /mattermost/fonts
COPY --from=builder /build/templates /mattermost/templates
COPY --from=builder /build/client /mattermost/client
RUN mkdir -p /mattermost/data /mattermost/logs /mattermost/plugins /mattermost/client/plugins
EXPOSE 8065
ENTRYPOINT ["/mattermost/bin/mattermost"]