From ab95a6d1896ca4cab1a9feba33e29c9112394dd4 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 13 Jul 2022 09:29:27 +0200 Subject: [PATCH] updated tor --- tor/Dockerfile | 2 +- tor/Makefile | 21 +++++++++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/tor/Dockerfile b/tor/Dockerfile index 4ba88e9..5e6e765 100644 --- a/tor/Dockerfile +++ b/tor/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.13 +FROM alpine:3.16 COPY entrypoint.sh /entrypoint diff --git a/tor/Makefile b/tor/Makefile index c4742d0..ddca40e 100644 --- a/tor/Makefile +++ b/tor/Makefile @@ -1,10 +1,19 @@ -USERNAME = rilla -IMG_NAME = tor +IMG_NAME=tor +REGISTRY=registry.monotremata.xyz +IMG=$(REGISTRY)/$(IMG_NAME) +PLATFORMS=linux/amd64 -.PHONY: build build-nc +.PHONY: build push buildx build: Dockerfile entrypoint.sh - docker build -t $(USERNAME)/$(IMG_NAME) . + docker build -t $(IMG) . -build-nc: Dockerfile entrypoint.sh - docker build --no-cache -t $(USERNAME)/$(IMG_NAME) . +push: build + docker image push $(IMG) + +buildx: Dockerfile entrypoint.sh + docker buildx build \ + --platform $(PLATFORMS) \ + --tag $(IMG) \ + --push \ + .