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 COPY --from=builder /app/dogtamer /app/dogtamer COPY --from=builder /app/server/templates /app/server/templates WORKDIR /app EXPOSE 5566 EXPOSE 8077 CMD ["/app/dogtamer", "serve"]