-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
16 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
FROM smebberson/alpine-base:1.2.0 | ||
FROM php:5.6-alpine | ||
MAINTAINER Christian Lück <[email protected]> | ||
|
||
ENV ADMINER_VERSION 4.2.4 | ||
|
||
# Install nginx, php, and dependencies | ||
RUN apk add --update nginx php-fpm php-pgsql php-mysql php-sqlite3 php-mssql wget freetds && \ | ||
rm -rf /var/cache/apk/* && \ | ||
chown -R nginx:www-data /var/lib/nginx | ||
RUN apk --update add postgresql-dev sqlite-dev freetds freetds-dev wget \ | ||
&& docker-php-ext-configure pdo_pgsql -with-pgsql=/usr/include/postgresql/ \ | ||
&& docker-php-ext-configure pdo_sqlite \ | ||
&& docker-php-ext-configure mssql \ | ||
&& docker-php-ext-install pdo pdo_sqlite pdo_mysql pdo_pgsql mssql \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
# Add the files | ||
ADD root / | ||
|
||
# add adminer as the only nginx site | ||
RUN mkdir -p /etc/nginx/sites-enabled/ && ln -s /etc/nginx/sites-available/adminer.conf /etc/nginx/sites-enabled/adminer.conf | ||
ADD php.ini /usr/local/etc/php/conf.d/php.ini | ||
ADD freetds.conf /etc/freetds.conf | ||
|
||
# install adminer and default theme | ||
RUN mkdir -p /var/www \ | ||
&& wget http://www.adminer.org/latest.php -O /var/www/index.php \ | ||
&& wget https://www.adminer.org/static/download/$ADMINER_VERSION/adminer-$ADMINER_VERSION.php -O /var/www/index.php \ | ||
&& wget --no-check-certificate https://raw.github.com/vrana/adminer/master/designs/hever/adminer.css -O /var/www/adminer.css \ | ||
&& chown nginx:www-data -R /var/www | ||
&& chown www-data:www-data -R /var/www | ||
|
||
# Expose the ports for nginx | ||
EXPOSE 80 443 | ||
EXPOSE 80 | ||
|
||
CMD php -S 0.0.0.0:80 -t /var/www/ |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.