aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/irc-slack/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-12-21 13:43:25 +0000
committerterminaldweller <thabogre@gmail.com>2022-12-21 13:43:25 +0000
commit9f174dea7865c9b2aa9228fc26f8dc9c4895ac74 (patch)
treede99dc91ff11cb1a243f0dc6cea1734dfa6eaf05 /terminaldweller.com/irc-slack/Dockerfile
parentupdate (diff)
downloadscripts-9f174dea7865c9b2aa9228fc26f8dc9c4895ac74.tar.gz
scripts-9f174dea7865c9b2aa9228fc26f8dc9c4895ac74.zip
update
Diffstat (limited to 'terminaldweller.com/irc-slack/Dockerfile')
-rw-r--r--terminaldweller.com/irc-slack/Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/terminaldweller.com/irc-slack/Dockerfile b/terminaldweller.com/irc-slack/Dockerfile
new file mode 100644
index 0000000..8222d8b
--- /dev/null
+++ b/terminaldweller.com/irc-slack/Dockerfile
@@ -0,0 +1,17 @@
+FROM alpine:3.15 as builder
+RUN apk update && apk upgrade
+RUN apk add go git make
+ENV GOPROXY=https://goproxy.io
+RUN git clone https://github.com/insomniacslk/irc-slack
+WORKDIR irc-slack
+RUN go mod download
+RUN cd /irc-slack/cmd/irc-slack && make
+
+FROM alpine:3.15 as certbuilder
+RUN apk add openssl
+WORKDIR /certs
+RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=ircslack.terminaldweller.com" -keyout server.key -out server.cert
+
+FROM alpine:3.13
+COPY --from=certbuilder /certs /certs
+COPY --from=builder /irc-slack/cmd/irc-slack/irc-slack /irc-slack/