update env vars for bin to run properly and use embies baked in ca cert

This commit is contained in:
thelamer
2019-06-03 14:34:07 -07:00
parent 17bc48734b
commit a8f15fc9af
4 changed files with 20 additions and 25 deletions

View File

@@ -29,7 +29,8 @@ RUN \
/tmp/opt/emby-server/system/* \
/tmp/opt/emby-server/lib/samba/* \
/tmp/opt/emby-server/lib/* \
/tmp/opt/emby-server/bin/ff*
/tmp/opt/emby-server/bin/ff* \
/tmp/opt/emby-server/etc
# runtime stage
FROM lsiobase/ubuntu:bionic
@@ -47,11 +48,6 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
COPY --from=buildstage /app/emby /app/emby
COPY root/ /
# lib setup
RUN \
echo "/app/emby" > /etc/ld.so.conf.d/emby.conf && \
ldconfig
# ports and volumes
EXPOSE 8096 8920
VOLUME /config /transcode

View File

@@ -1,4 +1,4 @@
FROM lsiobase/ubuntu:arm64v8-bionic as buildstage
FROM lsiobase/ubuntu:bionic as buildstage
# build args
ARG EMBY_RELEASE
@@ -29,10 +29,11 @@ RUN \
/tmp/opt/emby-server/system/* \
/tmp/opt/emby-server/lib/samba/* \
/tmp/opt/emby-server/lib/* \
/tmp/opt/emby-server/bin/ff*
/tmp/opt/emby-server/bin/ff* \
/tmp/opt/emby-server/etc
# runtime stage
FROM lsiobase/ubuntu:arm64v8-bionic
FROM lsiobase/ubuntu:bionic
# set version label
ARG BUILD_DATE
@@ -47,12 +48,6 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
COPY --from=buildstage /app/emby /app/emby
COPY root/ /
# lib setup
RUN \
echo "**** add lib path ****" && \
echo "/app/emby" > /etc/ld.so.conf.d/emby.conf && \
ldconfig
# ports and volumes
EXPOSE 8096 8920
VOLUME /config /transcode

View File

@@ -29,7 +29,8 @@ RUN \
/tmp/opt/emby-server/system/* \
/tmp/opt/emby-server/lib/samba/* \
/tmp/opt/emby-server/lib/* \
/tmp/opt/emby-server/bin/ff*
/tmp/opt/emby-server/bin/ff* \
/tmp/opt/emby-server/etc
# runtime stage
FROM lsiobase/ubuntu:arm32v7-bionic
@@ -47,12 +48,6 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
COPY --from=buildstage /app/emby /app/emby
COPY root/ /
# lib setup
RUN \
echo "**** add lib path ****" && \
echo "/app/emby" > /etc/ld.so.conf.d/emby.conf && \
ldconfig
# ports and volumes
EXPOSE 8096 8920
VOLUME /config /transcode

View File

@@ -1,5 +1,14 @@
#!/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 \
s6-setuidgid abc /app/emby/EmbyServer \
-programdata /config \