forked from AdguardTeam/AdGuardHome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
96 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,4 @@ | ||
.DS_Store | ||
/.git | ||
/.github | ||
/.vscode | ||
.idea | ||
/AdGuardHome | ||
/AdGuardHome.exe | ||
/AdGuardHome.yaml | ||
/AdGuardHome.log | ||
/data | ||
/build | ||
/dist | ||
/client/node_modules | ||
/.gitattributes | ||
/.gitignore | ||
/changelog.config.js | ||
/coverage.txt | ||
/Dockerfile | ||
/LICENSE.txt | ||
/Makefile | ||
/querylog.json | ||
/querylog.json.1 | ||
/*.md | ||
# Ignore everything except for explicitly allowed stuff. | ||
* | ||
|
||
# Test output | ||
dnsfilter/tests/top-1m.csv | ||
dnsfilter/tests/dnsfilter.TestLotsOfRules*.pprof | ||
|
||
# Snapcraft build temporary files | ||
*.snap | ||
launchpad_credentials | ||
snapcraft_login | ||
snapcraft.yaml.bak | ||
|
||
# IntelliJ IDEA project files | ||
*.iml | ||
|
||
# Packr | ||
*-packr.go | ||
!dist/docker/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# A docker file for scripts/make/build-docker.sh. | ||
|
||
FROM alpine:3.12 | ||
|
||
ARG BUILD_DATE | ||
ARG VERSION | ||
ARG VCS_REF | ||
LABEL maintainer="AdGuard Team <devteam@adguard.com>" \ | ||
org.opencontainers.image.created=$BUILD_DATE \ | ||
org.opencontainers.image.url="https://adguard.com/adguard-home.html" \ | ||
org.opencontainers.image.source="https://github.com/AdguardTeam/AdGuardHome" \ | ||
org.opencontainers.image.version=$VERSION \ | ||
org.opencontainers.image.revision=$VCS_REF \ | ||
org.opencontainers.image.vendor="AdGuard" \ | ||
org.opencontainers.image.title="AdGuard Home" \ | ||
org.opencontainers.image.description="Network-wide ads & trackers blocking DNS server" \ | ||
org.opencontainers.image.licenses="GPL-3.0" | ||
|
||
# Update certificates. | ||
RUN apk --no-cache --update add ca-certificates libcap && \ | ||
rm -rf /var/cache/apk/* && \ | ||
mkdir -p /opt/adguardhome/conf /opt/adguardhome/work && \ | ||
chown -R nobody: /opt/adguardhome | ||
|
||
ARG DIST_DIR | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
ARG TARGETVARIANT | ||
|
||
COPY --chown=nobody:nogroup\ | ||
./${DIST_DIR}/docker/AdGuardHome_${TARGETOS}_${TARGETARCH}_${TARGETVARIANT}\ | ||
/opt/adguardhome/AdGuardHome | ||
|
||
RUN setcap 'cap_net_bind_service=+eip' /opt/adguardhome/AdGuardHome | ||
|
||
EXPOSE 53/tcp 53/udp 67/udp 68/udp 80/tcp 443/tcp 853/tcp 3000/tcp | ||
|
||
VOLUME ["/opt/adguardhome/conf", "/opt/adguardhome/work"] | ||
|
||
WORKDIR /opt/adguardhome/work | ||
|
||
ENTRYPOINT ["/opt/adguardhome/AdGuardHome"] | ||
|
||
CMD [ \ | ||
"--no-check-update", \ | ||
"-c", "/opt/adguardhome/conf/AdGuardHome.yaml", \ | ||
"-h", "0.0.0.0", \ | ||
"-w", "/opt/adguardhome/work", \ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters