dogtamer/Dockerfile

16 lines
378 B
Docker
Raw Permalink Normal View History

2022-01-13 14:15:16 +00:00
FROM golang:alpine as builder
2021-08-21 14:15:29 +00:00
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
2021-09-14 21:27:26 +00:00
COPY --from=builder /app/server/templates /app/server/templates
WORKDIR /app
2021-08-21 14:15:29 +00:00
EXPOSE 5566
2021-09-14 21:21:35 +00:00
EXPOSE 8077
2021-08-21 14:15:29 +00:00
CMD ["/app/dogtamer", "serve"]