-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile-plex
34 lines (29 loc) · 1.09 KB
/
Dockerfile-plex
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
28
29
30
31
32
33
34
FROM alpine:latest
# 环境变量
ENV LANG="C.UTF-8" \
TZ="Asia/Shanghai" \
NGINX_PORT="8091" \
NGINX_SSL_PORT="8095" \
REPO_URL="https://github.com/chen3861229/embyExternalUrl" \
SSL_ENABLE="false" \
SSL_CRON="0 /2 " \
SSL_DOMAIN="" \
AUTO_UPDATE="false" \
SERVER="plex"
# 安装git
RUN apk --no-cache add nginx nginx-mod-http-js curl busybox git openssl logrotate tzdata && \
cp /usr/share/zoneinfo/$TZ /etc/localtime && \
echo "$TZ" > /etc/timezone && \
mkdir -p /var/cache/nginx/emby/image /opt && \
git clone $REPO_URL /embyExternalUrl && \
curl -L -o /tmp/lego_latest.tar.gz "https://github.com/go-acme/lego/releases/download/v3.7.0/lego_v3.7.0_linux_amd64.tar.gz" && \
tar zxvf /tmp/lego_latest.tar.gz -C /tmp && \
chmod 755 /tmp/lego && \
mv /tmp/lego / && \
rm -rf /tmp/*
COPY entrypoint /entrypoint
COPY start_server /start_server
COPY check_certificate /check_certificate
COPY config/logrotate.conf /etc/logrotate.d/medialinker
RUN chmod +x /entrypoint /start_server /check_certificate
ENTRYPOINT ["/bin/sh", "/entrypoint"]