go #49

Merged
niggl merged 96 commits from go into main 2024-12-12 15:11:31 +00:00
2 changed files with 17 additions and 0 deletions
Showing only changes of commit d51e78a442 - Show all commits

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
tmp
docker-compose.yaml
.air.toml

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o server
FROM scratch
COPY --from=builder /app/server /server
ADD https://curl.haxx.se/ca/cacert.pem /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT [ "/server" ]