Cleanup docker development setup

This commit is contained in:
2022-12-24 17:05:57 -07:00
parent c1ad692817
commit 91f0410485
11 changed files with 78 additions and 48 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM golang:1.19-bullseye as builder
MAINTAINER restitux <restitux@ohea.xyz>
# Install connect proto build deps
RUN go install github.com/bufbuild/buf/cmd/buf@latest && \
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest && \
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
go install github.com/bufbuild/connect-go/cmd/protoc-gen-connect-go@latest
COPY . /server
WORKDIR /server
RUN go build .
FROM debian:bullseye
RUN apt-get update && apt-get install -y \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /server/server /server
ENTRYPOINT ["/server"]