-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
50 lines (46 loc) · 1.15 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
FROM alpine:3.15
ARG TARGETPLATFORM
ENV NOTIFY="" \
NOTIFY_DEBUG="" \
NOTIFY_URLS="" \
EXCLUDE="" \
CRON_TIME="" \
TOKEN=""
COPY app* /app/
RUN case ${TARGETPLATFORM} in \
"linux/amd64") os=amd64 ;; \
"linux/arm64") os=arm64 ;; \
esac \
&& case ${TARGETPLATFORM} in \
"linux/amd64") dockeros=x86_64 ;; \
"linux/arm64") dockeros=aarch64 ;; \
esac \
&& wget "https://download.docker.com/linux/static/stable/${dockeros}/docker-23.0.1.tgz" -O /app/docker.tgz \
&& wget "https://github.com/regclient/regclient/releases/download/v0.4.7/regctl-linux-${os}" -O /app/regctl \
&& apk --update add --no-cache \
lighttpd \
bash \
curl \
busybox-initscripts \
openrc \
vim \
py-pip \
inotify-tools \
grep \
php-common \
php-fpm \
php-pgsql \
php-mysqli \
php-curl \
php-cgi \
fcgi \
php-pdo \
php-pdo_pgsql \
postgresql \
&& rm -rf /var/cache/apk/* \
&& adduser www-data -G www-data -H -s /bin/bash -D \
&& pip install --no-cache-dir apprise
ADD lighttpd.conf /etc/lighttpd/lighttpd.conf
EXPOSE 80
#VOLUME /var/www
ENTRYPOINT [ "/app/entrypoint.sh" ]