summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile14
-rw-r--r--appbuild.sh13
-rw-r--r--entrypoint.sh6
3 files changed, 33 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..48649bb
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+FROM alpine:latest
+
+RUN apk add --update --no-cache go git make musl-dev curl openssl
+RUN mkdir -p /app/src
+WORKDIR /app/src
+COPY appbuild.sh /app/src
+RUN chmod +x appbuild.sh
+RUN ./appbuild.sh
+WORKDIR /
+COPY entrypoint.sh /
+RUN chmod +x entrypoint.sh
+EXPOSE 3000
+RUN ip addr
+ENTRYPOINT ./entrypoint.sh
diff --git a/appbuild.sh b/appbuild.sh
new file mode 100644
index 0000000..18e48af
--- /dev/null
+++ b/appbuild.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+git clone https://git.piusbird.space/miniweb.git/
+cd miniweb
+make
+cp miniwebproxy /app
+cp -r scripts/ /app
+cd ..
+sh -c miniweb/sign.sh
+git clone https://git.piusbird.space/poseidon.git/
+cd poseidon 
+go build
+cp poseidon /app
diff --git a/entrypoint.sh b/entrypoint.sh
new file mode 100644
index 0000000..4f27eb9
--- /dev/null
+++ b/entrypoint.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+cd /app
+./miniwebproxy >> /stackmsg 2>&1 &
+./poseidon >> /stackmsg 2>&1
+tail -f /stackmsg
+