aboutsummaryrefslogtreecommitdiffstats
path: root/service/container/Dockerfile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-05-19 13:48:31 +0200
committerLouis Burda <quent.burda@gmail.com>2021-05-19 13:48:31 +0200
commit16b3dff93e5d1096174749e1b809728f585d95fb (patch)
treebf0882e08c1834774ff1297f81752305ac7aaec3 /service/container/Dockerfile
parent64e9b2ad130c0cf28797c3530683fc1cc6b0e9d3 (diff)
downloadenowars5-service-stldoctor-16b3dff93e5d1096174749e1b809728f585d95fb.tar.gz
enowars5-service-stldoctor-16b3dff93e5d1096174749e1b809728f585d95fb.zip
refactored service structure and added do.sh for automation
Diffstat (limited to 'service/container/Dockerfile')
-rw-r--r--service/container/Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/service/container/Dockerfile b/service/container/Dockerfile
new file mode 100644
index 0000000..e987831
--- /dev/null
+++ b/service/container/Dockerfile
@@ -0,0 +1,24 @@
+FROM ubuntu:18.04
+
+RUN apt update && apt install -y --no-install-recommends socat build-essential
+
+RUN addgroup --system service
+RUN adduser --system --ingroup service --uid 1000 service
+
+RUN mkdir /data
+
+COPY entrypoint.sh /
+RUN chmod +x /entrypoint.sh
+
+COPY cleaner.sh /
+RUN chmod +x /cleaner.sh
+
+COPY src/ /service/
+
+WORKDIR /service/
+RUN make clean && make
+
+EXPOSE 9000
+ENV RESULTDIR=/data/scans
+
+ENTRYPOINT ["/entrypoint.sh"]