laradock/adminer/Dockerfile

31 lines
811 B
Docker
Raw 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
2019-03-16 15:17:58 +08:00
2017-05-25 16:44:51 +08:00
ARG INSTALL_MSSQL=false
ENV INSTALL_MSSQL ${INSTALL_MSSQL}
2019-03-16 15:17:58 +08:00
2017-05-25 16:44:51 +08:00
RUN if [ ${INSTALL_MSSQL} = true ]; then \
set -xe \
2019-03-16 15:17:58 +08: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 16:44:51 +08:00
;fi
USER adminer
# We expose Adminer on port 8080 (Adminer's default)
EXPOSE 8080