-
Notifications
You must be signed in to change notification settings - Fork 226
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
updated docker file #22
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
@@ -1,18 +1,24 @@ | ||
FROM alpine:edge | ||
FROM alpine:latest | ||
|
||
LABEL maintainer="[email protected]" | ||
# webproc release settings | ||
ENV WEBPROC_VERSION 0.2.2 | ||
ENV WEBPROC_URL https://github.com/jpillora/webproc/releases/download/$WEBPROC_VERSION/webproc_linux_amd64.gz | ||
|
||
# expose ports | ||
EXPOSE 53 | ||
EXPOSE 8080 | ||
|
||
# fetch dnsmasq and webproc binary | ||
RUN apk update \ | ||
&& apk --no-cache add dnsmasq \ | ||
&& apk add --no-cache --virtual .build-deps curl \ | ||
&& curl -sL $WEBPROC_URL | gzip -d - > /usr/local/bin/webproc \ | ||
&& chmod +x /usr/local/bin/webproc \ | ||
&& apk del .build-deps | ||
RUN apk update && \ | ||
apk --no-cache add dnsmasq bash && \ | ||
apk add --no-cache --virtual .build-deps curl && \ | ||
curl -sL https://i.jpillora.com/webproc | bash && \ | ||
apk del .build-deps && \ | ||
mv webproc /usr/local/bin/ && \ | ||
\ | ||
mkdir -p /etc/default/ && \ | ||
echo -e "ENABLED=1\nIGNORE_RESOLVCONF=yes" > /etc/default/dnsmasq | ||
|
||
#configure dnsmasq | ||
RUN mkdir -p /etc/default/ | ||
RUN echo -e "ENABLED=1\nIGNORE_RESOLVCONF=yes" > /etc/default/dnsmasq | ||
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. do we not need this file anymore? 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. @jpillora this is in response to your review comments from earlier, github UI may not make that obvious. They moved these two They droped the two That script does some of the logic here, unarchiving the file and outputting a binary with execution rights enabled via The Addition of 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. Ah yes, they just moved it 👍 Agreed, probably safer to keep existing logic and use the direct github URL. |
||
COPY dnsmasq.conf /etc/dnsmasq.conf | ||
|
||
#run! | ||
ENTRYPOINT ["webproc","--config","/etc/dnsmasq.conf","--","dnsmasq","--no-daemon"] | ||
ENTRYPOINT [ "webproc", "--configuration-file", "/etc/dnsmasq.conf", "--", "dnsmasq", "--no-daemon" ] |
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.
Note that this change will switch from
edge
to the latest supported Alpine release (currently 3.12). It would be wiser to be more explicit and just state3.12
here and update accordingly in the future when newer releases of Alpine or dnsmasq are made available.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.
Agreed, should be explicit version