update env vars for bin to run properly and use embies baked in ca cert
This commit is contained in:
@@ -29,7 +29,8 @@ RUN \
|
|||||||
/tmp/opt/emby-server/system/* \
|
/tmp/opt/emby-server/system/* \
|
||||||
/tmp/opt/emby-server/lib/samba/* \
|
/tmp/opt/emby-server/lib/samba/* \
|
||||||
/tmp/opt/emby-server/lib/* \
|
/tmp/opt/emby-server/lib/* \
|
||||||
/tmp/opt/emby-server/bin/ff*
|
/tmp/opt/emby-server/bin/ff* \
|
||||||
|
/tmp/opt/emby-server/etc
|
||||||
|
|
||||||
# runtime stage
|
# runtime stage
|
||||||
FROM lsiobase/ubuntu:bionic
|
FROM lsiobase/ubuntu:bionic
|
||||||
@@ -47,11 +48,6 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
|||||||
COPY --from=buildstage /app/emby /app/emby
|
COPY --from=buildstage /app/emby /app/emby
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# lib setup
|
|
||||||
RUN \
|
|
||||||
echo "/app/emby" > /etc/ld.so.conf.d/emby.conf && \
|
|
||||||
ldconfig
|
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 8096 8920
|
EXPOSE 8096 8920
|
||||||
VOLUME /config /transcode
|
VOLUME /config /transcode
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM lsiobase/ubuntu:arm64v8-bionic as buildstage
|
FROM lsiobase/ubuntu:bionic as buildstage
|
||||||
|
|
||||||
# build args
|
# build args
|
||||||
ARG EMBY_RELEASE
|
ARG EMBY_RELEASE
|
||||||
@@ -29,10 +29,11 @@ RUN \
|
|||||||
/tmp/opt/emby-server/system/* \
|
/tmp/opt/emby-server/system/* \
|
||||||
/tmp/opt/emby-server/lib/samba/* \
|
/tmp/opt/emby-server/lib/samba/* \
|
||||||
/tmp/opt/emby-server/lib/* \
|
/tmp/opt/emby-server/lib/* \
|
||||||
/tmp/opt/emby-server/bin/ff*
|
/tmp/opt/emby-server/bin/ff* \
|
||||||
|
/tmp/opt/emby-server/etc
|
||||||
|
|
||||||
# runtime stage
|
# runtime stage
|
||||||
FROM lsiobase/ubuntu:arm64v8-bionic
|
FROM lsiobase/ubuntu:bionic
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
@@ -47,12 +48,6 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
|||||||
COPY --from=buildstage /app/emby /app/emby
|
COPY --from=buildstage /app/emby /app/emby
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# lib setup
|
|
||||||
RUN \
|
|
||||||
echo "**** add lib path ****" && \
|
|
||||||
echo "/app/emby" > /etc/ld.so.conf.d/emby.conf && \
|
|
||||||
ldconfig
|
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 8096 8920
|
EXPOSE 8096 8920
|
||||||
VOLUME /config /transcode
|
VOLUME /config /transcode
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ RUN \
|
|||||||
/tmp/opt/emby-server/system/* \
|
/tmp/opt/emby-server/system/* \
|
||||||
/tmp/opt/emby-server/lib/samba/* \
|
/tmp/opt/emby-server/lib/samba/* \
|
||||||
/tmp/opt/emby-server/lib/* \
|
/tmp/opt/emby-server/lib/* \
|
||||||
/tmp/opt/emby-server/bin/ff*
|
/tmp/opt/emby-server/bin/ff* \
|
||||||
|
/tmp/opt/emby-server/etc
|
||||||
|
|
||||||
# runtime stage
|
# runtime stage
|
||||||
FROM lsiobase/ubuntu:arm32v7-bionic
|
FROM lsiobase/ubuntu:arm32v7-bionic
|
||||||
@@ -47,12 +48,6 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
|||||||
COPY --from=buildstage /app/emby /app/emby
|
COPY --from=buildstage /app/emby /app/emby
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# lib setup
|
|
||||||
RUN \
|
|
||||||
echo "**** add lib path ****" && \
|
|
||||||
echo "/app/emby" > /etc/ld.so.conf.d/emby.conf && \
|
|
||||||
ldconfig
|
|
||||||
|
|
||||||
# ports and volumes
|
# ports and volumes
|
||||||
EXPOSE 8096 8920
|
EXPOSE 8096 8920
|
||||||
VOLUME /config /transcode
|
VOLUME /config /transcode
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
# env settings
|
||||||
|
APP_DIR="/app/emby"
|
||||||
|
export LD_LIBRARY_PATH="${APP_DIR}"
|
||||||
|
export FONTCONFIG_PATH="${APP_DIR}"/etc/fonts
|
||||||
|
if [ -d "/lib/x86_64-linux-gnu" ]; then
|
||||||
|
export LIBVA_DRIVERS_PATH="${APP_DIR}":/usr/lib/x86_64-linux-gnu/dri:/usr/lib64/dri:/usr/lib/dri
|
||||||
|
fi
|
||||||
|
export SSL_CERT_FILE="${APP_DIR}"/etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-setuidgid abc /app/emby/EmbyServer \
|
s6-setuidgid abc /app/emby/EmbyServer \
|
||||||
-programdata /config \
|
-programdata /config \
|
||||||
|
|||||||
Reference in New Issue
Block a user