Compare commits

...

2 Commits

Author SHA1 Message Date
restitux 1864cd2bee Add version string to log output 2023-01-09 20:28:40 -07:00
restitux 4a3fd0b902 Clean up prod docker configuration 2023-01-09 20:28:31 -07:00
3 changed files with 7 additions and 13 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
+1 -1
View File
@@ -26,7 +26,7 @@ func main() {
logging.SetBackend(backendLeveled)
log.Info("Starting cursorius-server")
log.Info("Starting cursorius-server v0.1.0")
configData, err := config.GetConfig()
if err != nil {