aboutsummaryrefslogtreecommitdiffstats
path: root/service/container/Dockerfile
diff options
context:
space:
mode:
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"]