forked from nineaiyu/xadmin-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-web
More file actions
33 lines (22 loc) · 912 Bytes
/
Dockerfile-web
File metadata and controls
33 lines (22 loc) · 912 Bytes
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 registry.cn-beijing.aliyuncs.com/nineaiyu/nginx:1.24-bullseye
ARG APT_MIRROR=http://mirrors.tuna.tsinghua.edu.cn
# Install APT dependencies
ARG DEPENDENCIES=" \
curl \
socat \
cron \
ca-certificates"
RUN set -ex \
&& rm -f /etc/apt/apt.conf.d/docker-clean \
&& sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list \
&& apt-get update > /dev/null \
&& apt-get -y install --no-install-recommends ${DEPENDENCIES} \
&& echo "no" | dpkg-reconfigure dash
RUN mkdir -p /var/www/acme-challenge
COPY web/conf/nginx.conf /etc/nginx/nginx.conf
COPY web/conf/xadmin-api-conf /etc/nginx/conf.d/xadmin-api-conf
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 80 443
ENTRYPOINT ["/bin/bash", "entrypoint.sh"]
STOPSIGNAL SIGQUIT