mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-09 22:42:58 +00:00
40fec70d13
This pull request adds the configuration and CI steps to build and publish a container wrapping the `dendrite-demo-pinecone` command as well as fixes a sentence structure issue in the pull request template. As this does not touch any go source code no tests have been added ### Pull Request Checklist <!-- Please read docs/CONTRIBUTING.md before submitting your pull request --> * [x] I have added tests for PR _or_ I have justified why this PR doesn't need tests. * [x] Pull request includes a [sign off](https://github.com/matrix-org/dendrite/blob/main/docs/CONTRIBUTING.md#sign-off) Signed-off-by: networkException <git@nwex.de> (by private sign-off) Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
26 lines
745 B
Docker
26 lines
745 B
Docker
FROM docker.io/golang:1.18-alpine AS base
|
|
|
|
RUN apk --update --no-cache add bash build-base
|
|
|
|
WORKDIR /build
|
|
|
|
COPY . /build
|
|
|
|
RUN mkdir -p bin
|
|
RUN go build -trimpath -o bin/ ./cmd/dendrite-demo-pinecone
|
|
RUN go build -trimpath -o bin/ ./cmd/create-account
|
|
RUN go build -trimpath -o bin/ ./cmd/generate-keys
|
|
|
|
FROM alpine:latest
|
|
LABEL org.opencontainers.image.title="Dendrite (Pinecone demo)"
|
|
LABEL org.opencontainers.image.description="Next-generation Matrix homeserver written in Go"
|
|
LABEL org.opencontainers.image.source="https://github.com/matrix-org/dendrite"
|
|
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|
|
|
COPY --from=base /build/bin/* /usr/bin/
|
|
|
|
VOLUME /etc/dendrite
|
|
WORKDIR /etc/dendrite
|
|
|
|
ENTRYPOINT ["/usr/bin/dendrite-demo-pinecone"]
|