Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Jan 13, 2024
1 parent 7aba1c9 commit e75c56f
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions xiaoya-emby/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
FROM scratch
FROM scratch AS alpine

COPY --from=amilys/embyserver:4.8.0.56 / /
COPY --from=alpine:3.19 / /
COPY --from=alpine:3.19 /bin /bin
COPY --from=alpine:3.19 /sbin /sbin
COPY --from=alpine:3.19 /etc /etc
COPY --from=alpine:3.19 /usr /usr
COPY --from=alpine:3.19 /run /run
COPY --from=alpine:3.19 /lib /lib

FROM amilys/embyserver:4.8.0.56

COPY --from=alpine / /

ENV LANG=C.UTF-8 \
PS1="\[\e[32m\][\[\e[m\]\[\e[36m\]\u \[\e[m\]\[\e[37m\]@ \[\e[m\]\[\e[34m\]\h\[\e[m\]\[\e[32m\]]\[\e[m\] \[\e[37;35m\]in\[\e[m\] \[\e[33m\]\w\[\e[m\] \[\e[32m\][\[\e[m\]\[\e[37m\]\d\[\e[m\] \[\e[m\]\[\e[37m\]\t\[\e[m\]\[\e[32m\]]\[\e[m\] \n\[\e[1;31m\]$ \[\e[0m\]" \
Expand All @@ -11,20 +19,6 @@ ENV LANG=C.UTF-8 \
S6_SYNC_DISKS=1 \
TZ=Asia/Shanghai

ENV AMDGPU_IDS=/share/libdrm/amdgpu.ids \
FONTCONFIG_PATH=/etc/fonts \
LD_LIBRARY_PATH=/lib:/system \
LIBVA_DRIVERS_PATH=/lib/dri \
OCL_ICD_VENDORS=/etc/OpenCL/vendors \
PCI_IDS_PATH=/share/hwdata/pci.ids \
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
UID=0 \
GID=0 \
GIDLIST=0 \
NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_DRIVER_CAPABILITIES=compute,video,utility \
XDG_CACHE_HOME=/config/cache

RUN set -ex && \
apk add --update --no-cache \
sqlite \
Expand All @@ -48,6 +42,4 @@ COPY --from=xiaoyaliu/alist:latest /updateall /updateall

RUN echo "v."`date +%m%d.%H%M\(B\)` > /docker.version

COPY --chmod=755 ./rootfs /

ENTRYPOINT [ "/init" ]
COPY --chmod=755 ./rootfs /

0 comments on commit e75c56f

Please sign in to comment.