-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadminerevo.wolfi.Dockerfile
38 lines (32 loc) · 1.52 KB
/
adminerevo.wolfi.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
# build: docker build --no-cache --progress=plain -t tobi312/tools:adminerevo -f adminerevo.wolfi.Dockerfile .
# hadolint ignore=DL3007
FROM ghcr.io/shyim/adminerevo:latest AS production
ARG VCS_REF
ARG BUILD_DATE
SHELL ["/bin/ash", "-euxo", "pipefail", "-c"]
LABEL org.opencontainers.image.title="AdminerEvo" \
#org.opencontainers.image.authors="AdminerEvo community" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.revision="${VCS_REF}" \
org.opencontainers.image.description="AdminerEvo: Database management in a single PHP file." \
org.opencontainers.image.documentation="https://github.com/adminerevo/adminerevo & https://github.com/shyim/adminerevo-docker" \
org.opencontainers.image.base.name="docker.io/shyim/adminerevo:latest & cgr.dev/chainguard/wolfi-base:latest" \
#org.opencontainers.image.licenses="Apache-2.0|GPL-2.0" \
org.opencontainers.image.url="https://hub.docker.com/r/tobi312/tools" \
org.opencontainers.image.source="https://github.com/Tob1as/docker-tools"
# switch user
USER root
# hadolint ignore=DL3018,SC2086
RUN PHP_VERSION=$(php -v | awk '/^PHP/ {print $2}' | cut -d'.' -f1,2) ; \
installPackages=" \
php-${PHP_VERSION}-pecl-mongodb \
#php-${PHP_VERSION}-pecl-sqlsrv \
#php-${PHP_VERSION}-pecl-pdosqlsrv \
#php-${PHP_VERSION}-odbc \
#php-${PHP_VERSION}-pdo_odbc \
#php-${PHP_VERSION}-pdo_dblib \
#netcat-openbsd \
" ; \
apk add --no-cache $installPackages
# switch user back
USER nonroot