laradock/adminer/Dockerfile

31 lines
1.0 KiB
Docker
Raw Permalink Normal View History

FROM adminer:4
2017-03-30 13:04:59 +08:00
2018-03-16 17:34:47 +08:00
LABEL maintainer="Patrick Artounian <partounian@gmail.com>"
2017-03-30 13:04:59 +08:00
# Add volume for sessions to allow session persistence
VOLUME /sessions
2017-05-25 16:44:51 +08:00
#####################################
# SQL SERVER:
#####################################
USER root
ARG INSTALL_MSSQL=false
ENV INSTALL_MSSQL ${INSTALL_MSSQL}
RUN if [ ${INSTALL_MSSQL} = true ]; then \
set -xe \
# && apk --update add --no-cache --virtual .phpize-deps $PHPIZE_DEPS unixodbc unixodbc-dev \
# && pecl channel-update pecl.php.net \
# && pecl install pdo_sqlsrv-4.1.8preview sqlsrv-4.1.8preview \
# && echo "extension=sqlsrv.so" > /usr/local/etc/php/conf.d/20-sqlsrv.ini \
# && echo "extension=pdo_sqlsrv.so" > /usr/local/etc/php/conf.d/20-pdo_sqlsrv.ini \
&& apk --update add --no-cache freetds unixodbc \
&& apk --update add --no-cache --virtual .build-deps $PHPIZE_DEPS freetds-dev unixodbc-dev \
&& docker-php-ext-install pdo_dblib \
&& apk del .build-deps \
2017-05-25 16:44:51 +08:00
;fi
USER adminer
# We expose Adminer on port 8080 (Adminer's default)
EXPOSE 8080