Torjus Håkestad
708147abc3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
16 lines
378 B
Docker
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"] |