Skip to content

Commit

Permalink
#16 even simpler, based on 7a5b4af
Browse files Browse the repository at this point in the history
  • Loading branch information
kusmierz committed Apr 10, 2016
1 parent 988d745 commit c0ebc49
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 151 deletions.
27 changes: 16 additions & 11 deletions Dockerfile
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.
32 changes: 0 additions & 32 deletions root/etc/nginx/nginx.conf

This file was deleted.

38 changes: 0 additions & 38 deletions root/etc/nginx/sites-available/adminer.conf

This file was deleted.

19 changes: 0 additions & 19 deletions root/etc/php/php-fpm.conf

This file was deleted.

8 changes: 0 additions & 8 deletions root/etc/services.d/nginx/finish

This file was deleted.

3 changes: 0 additions & 3 deletions root/etc/services.d/nginx/run

This file was deleted.

8 changes: 0 additions & 8 deletions root/etc/services.d/php-fpm/finish

This file was deleted.

3 changes: 0 additions & 3 deletions root/etc/services.d/php-fpm/run

This file was deleted.

29 changes: 0 additions & 29 deletions root/var/www/index.html

This file was deleted.

0 comments on commit c0ebc49

Please sign in to comment.