ministream/Dockerfile

14 lines
306 B
Docker
Raw Normal View History

2023-11-30 18:32:38 +00:00
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
2023-11-30 22:56:33 +00:00
EXPOSE 8080
EXPOSE 50000-50050/udp
2023-11-30 18:32:38 +00:00
CMD ["/usr/bin/ministream", "serve"]