aboutsummaryrefslogtreecommitdiffstats
path: root/service/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'service/Dockerfile')
-rw-r--r--service/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/service/Dockerfile b/service/Dockerfile
new file mode 100644
index 0000000..68a3d9f
--- /dev/null
+++ b/service/Dockerfile
@@ -0,0 +1,18 @@
+FROM ubuntu:18.04
+
+RUN apt update && apt install -y --no-install-recommends socat
+
+RUN addgroup --system service
+RUN adduser --system --ingroup service --uid 1000 service
+
+RUN mkdir /data
+
+COPY entrypoint.sh /
+RUN chmod +x /entrypoint.sh
+
+COPY src/ /service/
+
+WORKDIR /service/
+EXPOSE 9000
+
+ENTRYPOINT ["/entrypoint.sh"]