blackbirdchess-docker-dev/adminer/Dockerfile

31 lines
811 B
Docker
Raw Normal View History

FROM adminer:4
2017-03-30 07:04:59 +02:00
2018-03-16 10:34:47 +01:00
LABEL maintainer="Patrick Artounian <partounian@gmail.com>"
2017-03-30 07:04:59 +02:00
# Add volume for sessions to allow session persistence
VOLUME /sessions
2017-05-25 10:44:51 +02:00
#####################################
# SQL SERVER:
#####################################
USER root
2019-03-16 08:17:58 +01:00
2017-05-25 10:44:51 +02:00
ARG INSTALL_MSSQL=false
ENV INSTALL_MSSQL ${INSTALL_MSSQL}
2019-03-16 08:17:58 +01:00
2017-05-25 10:44:51 +02:00
RUN if [ ${INSTALL_MSSQL} = true ]; then \
set -xe \
2019-03-16 08:17:58 +01:00
&& apk update \
&& apk add --no-cache --virtual .php-build-dependencies unixodbc-dev freetds-dev \
&& apk add --virtual .php-runtime-dependencies unixodbc freetds \
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr \
&& docker-php-ext-install pdo_odbc pdo_dblib \
&& apk del .php-build-dependencies \
&& rm -rf /var/cache/apk/* \
2017-05-25 10:44:51 +02:00
;fi
USER adminer
# We expose Adminer on port 8080 (Adminer's default)
EXPOSE 8080