-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 794 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (19 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM alexanderwagnerdev/alpine:builder AS builder
RUN apk update && \
apk upgrade && \
apk add --no-cache build-base musl-dev git pkgconfig openssl-dev openssl-libs-static patchelf binutils rust cargo && \
rm -rf /var/cache/apk/*
WORKDIR /app
RUN git clone --branch v2.17.0 --depth 1 https://github.com/NOALBS/nginx-obs-automatic-low-bitrate-switching.git && \
cd nginx-obs-automatic-low-bitrate-switching && \
CARGO_BUILD_JOBS=$(nproc) cargo build --release
FROM alexanderwagnerdev/alpine:latest
RUN apk update && \
apk upgrade && \
apk add --no-cache libgcc && \
rm -rf /var/cache/apk/*
WORKDIR /app
COPY --from=builder /app/nginx-obs-automatic-low-bitrate-switching/target/release/noalbs .
COPY .env .env
COPY config.json config.json
CMD ["./noalbs"]