diff options
-rw-r--r-- | cointop/Dockerfile | 8 | ||||
-rwxr-xr-x | cointop/build_and_push.sh | 6 | ||||
-rw-r--r-- | irc-slack/Dockerfile | 1 |
3 files changed, 14 insertions, 1 deletions
diff --git a/cointop/Dockerfile b/cointop/Dockerfile new file mode 100644 index 0000000..1e5cc22 --- /dev/null +++ b/cointop/Dockerfile @@ -0,0 +1,8 @@ +FROM alpine:3.16 as builder +RUN apk update && apk upgrade && apk add go git +ENV GOPROXY=https://goproxy.io +RUN git clone https://github.com/cointop-sh/cointop && cd cointop/cmd/cointop && go build + +FROM alpine:3.16 +COPY --from=builder /cointop/cmd/cointop/cointop /cointop/cointop +ENTRYPOINT ["/cointop/cointop"] diff --git a/cointop/build_and_push.sh b/cointop/build_and_push.sh new file mode 100755 index 0000000..e3173e1 --- /dev/null +++ b/cointop/build_and_push.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +docker buildx create --name armbuilder +docker buildx use armbuilder +https_proxy=socks5://[::1]:9993 docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --push -t bloodstalker/cointop . && \ + docker buildx imagetools inspect bloodstalker/cointop diff --git a/irc-slack/Dockerfile b/irc-slack/Dockerfile index d65cb21..8222d8b 100644 --- a/irc-slack/Dockerfile +++ b/irc-slack/Dockerfile @@ -15,4 +15,3 @@ RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN= FROM alpine:3.13 COPY --from=certbuilder /certs /certs COPY --from=builder /irc-slack/cmd/irc-slack/irc-slack /irc-slack/ -# /irc-slack/irc-slack --port 6667 --host 0.0.0.0 --cert ../../certs/server.cert --key ../../certs/server.key |