Clean up prod docker configuration

This commit is contained in:
2023-01-09 20:28:31 -07:00
parent 62fe1cf747
commit 4a3fd0b902
2 changed files with 6 additions and 12 deletions
+2 -12
View File
@@ -1,20 +1,10 @@
FROM golang:1.19-bullseye as builder
FROM golang:1.19-alpine 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/*
FROM alpine:latest
COPY --from=builder /server/server /server
ENTRYPOINT ["/server"]
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
docker build . -f docker/Dockerfile -t git.ohea.xyz/cursorius/server:latest
docker push git.ohea.xyz/cursorius/server:latest