Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base on official PHP 7.0 Alpine image #21

Closed
wants to merge 9 commits into from
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ RUN set -x \
&& ./configure --with-unixODBC=shared,/usr \
&& docker-php-ext-install odbc

## Add Tini
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ tini
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alpine version of official php images has been upgraded and it includes tini in the defauls packages list now. no need for the custom repository anymore (might even not work anymore)

Copy link
Author

@kusmierz kusmierz Sep 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I've seen it before, but had no time to update it. Thanks.

ENTRYPOINT ["/usr/bin/tini", "--"]

## Add the files
ADD php.ini /usr/local/etc/php/conf.d/php.ini

## install adminer and default theme
ENV ADMINER_VERSION 4.2.4
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better download "latest" or having const with version?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kusmierz See the discussion here: #5

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks @mikehaertl I knew I've seen it somewhere :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some discussion about this in #5, however until we get to solve this I would vote to not introduce any additional changes in this PR 👍 (In other words, revert this change and)

After all, this PR ought to be about Alpine, right? :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


RUN mkdir -p /var/www
ADD https://www.adminer.org/static/download/$ADMINER_VERSION/adminer-$ADMINER_VERSION.php /var/www/index.php
ADD http://www.adminer.org/static/download/$ADMINER_VERSION/adminer-$ADMINER_VERSION.php /var/www/index.php
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the change to https ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By mistake, I've reverted it in e6f58f2

ADD https://raw.github.com/vrana/adminer/master/designs/hever/adminer.css /var/www/adminer.css
RUN chown www-data:www-data -R /var/www

## Add Tini
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ tini
ENTRYPOINT ["/usr/bin/tini", "--"]

## Expose the port
EXPOSE 80

Expand Down