-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (15 loc) · 616 Bytes
/
Dockerfile
File metadata and controls
23 lines (15 loc) · 616 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM docker.io/golang:alpine AS base
RUN apk --update --no-cache add bash build-base git
WORKDIR /build
COPY . /build
RUN mkdir -p bin
RUN go build -trimpath -o bin/ ./cmd/pinecone
FROM alpine:latest
LABEL org.opencontainers.image.title="Pinecone"
LABEL org.opencontainers.image.description="Standalone Pinecone router"
LABEL org.opencontainers.image.source="https://github.com/matrix-org/pinecone"
LABEL org.opencontainers.image.licenses="Apache-2.0"
COPY --from=base /build/bin/* /usr/bin/
EXPOSE 65432/tcp
EXPOSE 65433/tcp
ENTRYPOINT ["/usr/bin/pinecone", "-listenws=:65433", "-listen=:65432", "-manhole"]