12 lines
271 B
Docker
12 lines
271 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 go build -o ministream main.go
|
||
|
|
||
|
FROM alpine:latest
|
||
|
COPY --from=builder /app/ministream /usr/bin/ministream
|
||
|
CMD ["/usr/bin/ministream", "serve"]
|