-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile
22 lines (18 loc) · 834 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian
WORKDIR /dashboard
COPY sqlite.db /dashboard/data/
#COPY resource/template/theme-custom/* /dashboard/resource/template/theme-custom/
#COPY resource/static/custom/css/* /dashboard/resource/static/custom/css/
RUN apt-get update &&\
apt-get -y install openssh-server wget iproute2 vim git cron unzip supervisor nginx &&\
git config --global core.bigFileThreshold 1k &&\
git config --global core.compression 0 &&\
git config --global advice.detachedHead false &&\
git config --global pack.threads 1 &&\
git config --global pack.windowMemory 50m &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/* &&\
echo "#!/usr/bin/env bash\n\n\
bash <(wget -qO- https://raw.githubusercontent.com/nap0o/nezha/main/init.sh)" > entrypoint.sh &&\
chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]