From 368eaa0fbe242504fc6ac7c60635fd42831f3c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wypch=C5=82o?= Date: Thu, 24 Feb 2022 13:18:37 +0100 Subject: [PATCH] switch blocker to image (#1764) --- docker-compose.blocker.yml | 4 +--- docker/blocker/Dockerfile | 16 ---------------- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 docker/blocker/Dockerfile diff --git a/docker-compose.blocker.yml b/docker-compose.blocker.yml index 845bdc6a..3c1deeaa 100644 --- a/docker-compose.blocker.yml +++ b/docker-compose.blocker.yml @@ -13,9 +13,7 @@ services: - BLOCKER_PORT=4000 blocker: - build: - context: ./docker/blocker - dockerfile: Dockerfile + image: skynetlabs/blocker container_name: blocker restart: unless-stopped logging: *default-logging diff --git a/docker/blocker/Dockerfile b/docker/blocker/Dockerfile deleted file mode 100644 index 70d572b9..00000000 --- a/docker/blocker/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM golang:1.16.7 -LABEL maintainer="SkynetLabs " - -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"]