-
Notifications
You must be signed in to change notification settings - Fork 38
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
Changes from 1 commit
970a70d
e6f58f2
0fb8d51
dc87315
8601a8a
48274b8
7d58a98
72ac62b
749192d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it better download "latest" or having const with version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great, thanks @mikehaertl I knew I've seen it somewhere :) There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? :) There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why the change to https ? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
||
|
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.