dogtamer/Dockerfile
Torjus Håkestad 708147abc3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add pipeline
2022-01-13 15:15:16 +01:00

16 lines
378 B
Docker

FROM golang:alpine 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"]