-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
29 lines (22 loc) · 884 Bytes
/
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
# docker.io/genesem/adminer-alpine
# https://github.com/genesem/adminer-alpine
FROM alpine:latest
LABEL maintainer "Gene Semerenko - https://github.com/genesem"
# update repositories to edge
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories; \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories; \
echo "UTC" > /etc/timezone; \
mkdir -p /var/www;
RUN set -eux; \
apk update && apk upgrade; \
apk add --no-cache php php-common \
php-odbc php-pdo php-pdo_odbc php-pdo_dblib \
php-mysqli php-pdo_mysql php-pdo_pgsql \
php-bcmath php-xml php-xmlreader php-bz2 php-iconv \
php-opcache php-zip php-json php82-mbstring php82-session; \
rm -rf /var/cache/apk/*;
WORKDIR /var/www
COPY www /var/www
STOPSIGNAL SIGINT
EXPOSE 8080
CMD [ "php", "-S", "[::]:8080", "-t", "/var/www" ]