Fixes, refactor, a lot of things happen

This commit is contained in:
PB
2022-12-02 21:03:08 +01:00
parent 5adafdd8fb
commit 6f7fdad944
30 changed files with 685 additions and 454 deletions

15
Dockerfile.builder Normal file
View File

@@ -0,0 +1,15 @@
# Builder
FROM golang:alpine
ARG BIN_OUTPUT=/go/bin
ARG GO_SERVER=cmd/server/main.go
# ARG GO_WORKER=cmd/worker/main.go
WORKDIR /go/src/app
COPY src ./
RUN export CGO_ENABLED=0 ; export GOOS=linux ; export GOARCH=amd64 && \
go build -ldflags="-w -s" -o "$BIN_OUTPUT/server" $GO_SERVER
# && \
# go build -ldflags="-w -s" -o "$BIN_OUTPUT/worker" $GO_WORKER