dockerfile: swith to inheriting build
parent
899098bc51
commit
edbcaaa064
15
Dockerfile
15
Dockerfile
|
@ -1,14 +1,7 @@
|
|||
FROM golang:bullseye AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -buildvcs=false -ldflags="-s -w"
|
||||
FROM linuxserver/ffmpeg:latest
|
||||
|
||||
FROM ubuntu:22.04
|
||||
WORKDIR /app
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
COPY ./build-ffmpeg.sh .
|
||||
RUN bash ./build-ffmpeg.sh
|
||||
COPY run.sh /go-vod.sh
|
||||
|
||||
COPY --from=builder /app/go-vod .
|
||||
EXPOSE 47788
|
||||
CMD ["/app/go-vod"]
|
||||
|
||||
ENTRYPOINT ["/go-vod.sh"]
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
# apt-get remove -y libva ffmpeg # not needed for Docker
|
||||
# This script is intended for bare-metal installations.
|
||||
# It builds ffmpeg and NVENC drivers from source.
|
||||
|
||||
apt-get remove -y ffmpeg
|
||||
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script is intended for bare-metal installations.
|
||||
# It builds ffmpeg and VA-API drivers from source.
|
||||
|
||||
set -e
|
||||
|
||||
# apt-get remove -y libva ffmpeg # not needed for Docker
|
||||
apt-get remove -y libva ffmpeg
|
||||
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
|
|
Loading…
Reference in New Issue