mirror of
https://github.com/matrix-org/pinecone.git
synced 2026-01-16 23:00:32 +00:00
Add Dockerfile for simulator
This commit is contained in:
parent
3adc85477d
commit
7a065312a9
1 changed files with 27 additions and 0 deletions
27
Dockerfile.sim
Normal file
27
Dockerfile.sim
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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/pineconesim
|
||||
|
||||
FROM alpine:latest
|
||||
LABEL org.opencontainers.image.title="Pinecone Simulator"
|
||||
LABEL org.opencontainers.image.description="All-in-one Pinecone Simulator"
|
||||
LABEL org.opencontainers.image.source="https://github.com/matrix-org/pinecone"
|
||||
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
||||
|
||||
RUN mkdir -p /cmd/pineconesim/graphs/
|
||||
|
||||
COPY --from=base /build/bin/* /usr/bin/
|
||||
COPY --from=base /build/cmd/pineconesim/ui/* /cmd/pineconesim/ui/
|
||||
COPY --from=base /build/cmd/pineconesim/page.html /cmd/pineconesim/
|
||||
COPY --from=base /build/cmd/pineconesim/graphs/*.txt /cmd/pineconesim/graphs/
|
||||
|
||||
EXPOSE 65432/tcp
|
||||
|
||||
ENTRYPOINT ["/usr/bin/pineconesim"]
|
||||
Loading…
Add table
Reference in a new issue