aboutsummaryrefslogtreecommitdiff
path: root/xS
diff options
context:
space:
mode:
Diffstat (limited to 'xS')
-rw-r--r--xS/Dockerfile10
-rw-r--r--xS/Makefile2
2 files changed, 11 insertions, 1 deletions
diff --git a/xS/Dockerfile b/xS/Dockerfile
new file mode 100644
index 0000000..cb9ceb3
--- /dev/null
+++ b/xS/Dockerfile
@@ -0,0 +1,10 @@
+# TODO(p): Make it possible to store configuration.
+# docker/podman build --tag xs-irc --file xS/Dockerfile ..
+FROM alpine:latest
+LABEL org.opencontainers.image.url="https://git.janouch.name/p/xK"
+RUN apk add --no-cache build-base make go
+WORKDIR /xK/xS
+COPY .. /xK
+RUN make
+EXPOSE 6667
+ENTRYPOINT ["./xS"]
diff --git a/xS/Makefile b/xS/Makefile
index 57927fa..770be13 100644
--- a/xS/Makefile
+++ b/xS/Makefile
@@ -5,7 +5,7 @@ AWK = env LC_ALL=C awk
outputs = xS xS-replies.go xS.1
all: $(outputs)
-xS: xS.go ../xK-version xS-replies.go
+xS: xS.go xS-replies.go ../xK-version
go build -ldflags "-X 'main.projectVersion=$$(cat ../xK-version)'" -o $@
xS-replies.go: xS-gen-replies.awk xS-replies
$(AWK) -f xS-gen-replies.awk xS-replies > $@