Add Docker Hub image builds

This commit is contained in:
Eugene Zbiranik
2019-01-29 15:11:11 +03:00
parent 0161509b5f
commit 98bfb82787
7 changed files with 161 additions and 152 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
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 && \
rm -rf /var/cache/apk/*
COPY --from=build /src/AdGuardHome/AdGuardHome /AdGuardHome
EXPOSE 53 3000
VOLUME /data
ENTRYPOINT ["/AdGuardHome"]
CMD ["-h", "0.0.0.0"]