forked from dockette/adminer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (43 loc) · 1.57 KB
/
Dockerfile
File metadata and controls
49 lines (43 loc) · 1.57 KB
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
FROM alpine:3.22
LABEL maintainer="Milan Sulc <sulcmil@gmail.com>"
ENV ADMINER_VERSION=5.4.2
ENV MEMORY=256M
ENV UPLOAD=2048M
ENV PORT=80
ENV WORKERS=8
ENV PHP_CLI_SERVER_WORKERS=${WORKERS}
RUN echo '@community http://nl.alpinelinux.org/alpine/v3.22/community' >> /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add \
bash \
wget \
unzip \
ca-certificates \
php84@community \
php84-session@community \
php84-mysqli@community \
php84-pgsql@community \
php84-json@community \
php84-pecl-mongodb@community \
php84-sqlite3@community \
tini && \
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /srv/index.php && \
wget https://github.com/vrana/adminer/releases/download/v$ADMINER_VERSION/adminer-$ADMINER_VERSION.zip -O /tmp/adminer-$ADMINER_VERSION.zip && \
unzip /tmp/adminer-$ADMINER_VERSION.zip -d /tmp && \
mkdir -p /srv/plugins && \
mv /tmp/adminer-$ADMINER_VERSION/plugins/* /srv/plugins/ 2>/dev/null || true && \
mkdir -p /srv/designs && \
mv /tmp/adminer-$ADMINER_VERSION/designs/* /srv/designs/ 2>/dev/null || true && \
rm -rf /tmp/* && \
mkdir -p /srv/adminer-plugins && \
ln -s /usr/bin/php84 /usr/bin/php && \
apk del wget unzip ca-certificates && \
rm -rf /var/cache/apk/*
ADD ./adminer-full/entrypoint.sh /entrypoint.sh
ADD ./.plugins/ /srv/plugins-available/
RUN chmod +x /entrypoint.sh
WORKDIR /srv
EXPOSE 80
ENTRYPOINT ["tini", "--"]
CMD ["/entrypoint.sh"]