Initial commit

This commit is contained in:
2021-08-21 16:15:29 +02:00
commit 72c84dff1e
9 changed files with 590 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM golang:latest as builder
WORKDIR /app
COPY go.mod /app/go.mod
COPY go.sum /app/go.sum
RUN go mod download
COPY . /app
RUN CGO_ENABLED=0 go build -o dogtamer cmd/dogtamer.go
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/dogtamer /app/dogtamer
EXPOSE 5566
CMD ["/app/dogtamer", "serve"]