memories/Dockerfile

15 lines
311 B
Docker
Raw Normal View History

2023-03-17 17:41:09 +00:00
FROM golang:bullseye AS builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 go build -buildvcs=false -ldflags="-s -w"
FROM ubuntu:22.04
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
COPY ./build-ffmpeg.sh .
RUN ./build-ffmpeg.sh
COPY --from=builder /app/go-vod .
EXPOSE 47788
CMD ["/app/go-vod", "config.json"]