-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathDockerfile.webhook
33 lines (24 loc) · 974 Bytes
/
Dockerfile.webhook
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
FROM phusion/baseimage:jammy-1.0.1
WORKDIR /usr/src/emby_pinyin
COPY --from=composer:lts /usr/bin/composer /usr/bin/composer
ENV DEBIAN_FRONTEND=noninteractive
RUN touch /root/.vimrc && \
sed -i 's/http:\/\/archive.ubuntu.com/http:\/\/mirrors.aliyun.com/g' /etc/apt/sources.list && \
sed -i 's/http:\/\/security.ubuntu.com/http:\/\/mirrors.aliyun.com/g' /etc/apt/sources.list && \
apt update && \
apt install php php-dev php-curl php-json php-mbstring php-zip -y && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY build/service/ /etc/service/
COPY build/cron/ /etc/cron.d/
COPY build/init/ /etc/my_init.d/
ENV PHP_INI_DIR=/etc/php/8.1/cli
COPY . /usr/src/emby_pinyin
RUN sed -i 's|;phar.readonly = On|phar.readonly = Off|' $PHP_INI_DIR/php.ini && \
composer pre-install
ENV WEBHOOK_ENABLED=0
ENV CRON_ENABLED=0
ENV CRON_SCHEDULE="0 * * * *"
ENV HOST="http://example:8096"
ENV API_KEY="*****"
ENV SORT_TYPE=1
EXPOSE 80