Add blocker Dockerfile

This commit is contained in:
PJ 2021-12-01 10:57:28 +01:00
parent 081a8fab84
commit 3722969f0f
No known key found for this signature in database
GPG Key ID: F345964979FA8971
1 changed files with 16 additions and 0 deletions

16
docker/blocker/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM golang:1.16.7
LABEL maintainer="NebulousLabs <devs@nebulous.tech>"
ENV GOOS linux
ENV GOARCH amd64
ARG branch=main
WORKDIR /root
RUN git clone --single-branch --branch ${branch} https://github.com/SkynetLabs/blocker.git && \
cd blocker && \
go mod download && \
make release
ENTRYPOINT ["blocker"]