-
Notifications
You must be signed in to change notification settings - Fork 73
/
Dockerfile
54 lines (47 loc) · 1.11 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM alpine:3.20
LABEL maintainer="[email protected]"
LABEL description="Alpine based image with apache2 and php8.3."
# MOD: Tak
# 使用中科大镜像(改用GitHub Actions,无需镜像)
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
# 安装 Apache 和 PHP
RUN apk --no-cache --update \
add apache2 \
apache2-ssl \
curl \
memcached \
tzdata \
php83-apache2 \
php83-bcmath \
php83-bz2 \
php83-calendar \
php83-common \
php83-ctype \
php83-curl \
php83-dom \
php83-gd \
php83-iconv \
php83-mbstring \
php83-mysqli \
php83-mysqlnd \
php83-openssl \
php83-pdo_mysql \
php83-pdo_pgsql \
php83-pdo_sqlite \
php83-phar \
php83-session \
php83-xml \
php83-xmlreader \
php83-xmlwriter \
php83-simplexml \
php83-json \
php83-posix \
php83-zip \
php83-pecl-memcached \
&& mkdir /htdocs
# 复制 ./epg 文件夹内容到 /htdocs
COPY ./epg /htdocs
EXPOSE 80 443
ADD docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]