Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Adding Dockerfile (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbreiding committed Dec 20, 2021
1 parent e046f4e commit 02655c7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM golang:1.17 as builder

WORKDIR ${GOPATH:-/go}/src/temporalite

COPY . .
RUN go mod download
RUN go get -d -v ./...

RUN go build -o ${GOPATH:-/go}/bin/ ${GOPATH:-/go}/src/temporalite/cmd/temporalite

FROM gcr.io/distroless/base-debian11

COPY --from=builder ${GOPATH:-/go}/bin/temporalite /
EXPOSE 7233

ENTRYPOINT ["/temporalite", "start", "--ephemeral", "-n", "default", "--ip" , "0.0.0.0"]

0 comments on commit 02655c7

Please sign in to comment.