dogtamer/Dockerfile
2021-09-14 23:21:35 +02:00

15 lines
314 B
Docker

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
EXPOSE 8077
CMD ["/app/dogtamer", "serve"]