Initial commit

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2022-01-19 19:37:44 +00:00
commit b195ec9e4d
9 changed files with 1154 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM golang:1.17-alpine AS builder
WORKDIR /app/
ADD go.mod go.sum ./
RUN go mod download
ADD . .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o link main.go
FROM golang:1.17-alpine
WORKDIR /app/
COPY --from=builder /app/link /app/link
ENTRYPOINT ["/app/link"]