-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (30 loc) · 865 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
30
31
32
33
34
35
36
37
38
39
40
41
FROM adminer:5.1.0@sha256:83f7567b24a7bfaadb2d780601e48aeab8ff6b29700792b07aa343b89056da35
ENV REFRESHED_AT=2023-09-29
LABEL Name="senzing/adminer" \
Maintainer="support@senzing.com" \
Version="1.0.3"
HEALTHCHECK CMD ["/app/healthcheck.sh"]
# Run as "root" for system installation.
USER root
# Install packages.
RUN apk add \
--no-cache \
--virtual .php-ext-deps \
freetds \
unixodbc \
&& apk add \
--no-cache \
--virtual .build-deps \
freetds-dev \
unixodbc-dev \
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \
&& docker-php-ext-install \
pdo_odbc pdo_dblib \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*
# Copy files from repository.
COPY ./rootfs /
# Runtime execution.
EXPOSE 8080
USER adminer
CMD [ "php", "-S", "[::]:8080", "-t", "/var/www/html" ]