chore: Set up blank repo and pipeline
Some checks reported errors
continuous-integration/drone Build encountered an error

This commit is contained in:
2024-02-19 01:35:04 +01:00
parent e59e3b8918
commit 962f933fb7
5 changed files with 258 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM golang:latest as builder
WORKDIR /app
COPY go.mod go.sum ./
COPY . .
RUN go mod download && /
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
FROM scratch
WORKDIR /app
COPY --from=builder /app/main .
EXPOSE 80
CMD ["./main"]