2019-01-29 12:11:11 +00:00
|
|
|
FROM golang:alpine AS build
|
|
|
|
|
|
|
|
RUN apk add --update git make build-base npm && \
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
WORKDIR /src/AdGuardHome
|
|
|
|
COPY . /src/AdGuardHome
|
|
|
|
RUN make
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
LABEL maintainer="AdGuard Team <devteam@adguard.com>"
|
|
|
|
|
|
|
|
# Update CA certs
|
|
|
|
RUN apk --no-cache --update add ca-certificates && \
|
2019-02-11 12:17:49 +00:00
|
|
|
rm -rf /var/cache/apk/* && mkdir -p /opt/adguardhome
|
2019-01-29 12:11:11 +00:00
|
|
|
|
2019-02-11 12:17:49 +00:00
|
|
|
COPY --from=build /src/AdGuardHome/AdGuardHome /opt/adguardhome/AdGuardHome
|
2019-01-29 12:11:11 +00:00
|
|
|
|
|
|
|
EXPOSE 53 3000
|
|
|
|
|
2019-02-11 12:17:49 +00:00
|
|
|
VOLUME ["/opt/adguardhome/conf", "/opt/adguardhome/work"]
|
2019-01-29 12:11:11 +00:00
|
|
|
|
2019-02-11 12:17:49 +00:00
|
|
|
ENTRYPOINT ["/opt/adguardhome/AdGuardHome"]
|
|
|
|
CMD ["-h", "0.0.0.0", "-c", "/opt/adguardhome/conf/AdGuardHome.yaml", "-w", "/opt/adguardhome/work"]
|