mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
17 lines
580 B
Docker
17 lines
580 B
Docker
FROM golang:1.19 AS builder
|
|
|
|
RUN mkdir -p ${GOPATH:-/go}/src/temporalite && \
|
|
git clone https://github.com/temporalio/temporalite.git ${GOPATH:-/go}/src/temporalite && \
|
|
cd ${GOPATH:-/go}/src/temporalite && \
|
|
git switch -c tmp v0.2.0 && \
|
|
go mod download && \
|
|
go get -d -v ./... && \
|
|
go build -o ${GOPATH:-/go}/bin/ ${GOPATH:-/go}/src/temporalite/cmd/temporalite
|
|
|
|
FROM debian:stable-slim
|
|
|
|
COPY --from=builder ${GOPATH:-/go}/bin/temporalite /bin
|
|
EXPOSE 7233 8233
|
|
|
|
ENTRYPOINT ["/bin/temporalite", "start", "--ephemeral", "-n", "default", "--ip" , "0.0.0.0"]
|