aboutsummaryrefslogtreecommitdiffstats
path: root/service/Dockerfile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-05-29 14:24:31 +0200
committerLouis Burda <quent.burda@gmail.com>2021-05-29 14:24:31 +0200
commit13b65f01132c41be9ab8d9f92c2c5ca605c366d8 (patch)
tree74bd5b4dee779e4600d416adf4abcd4f621addab /service/Dockerfile
parent62d99253144a14648c4da1c2a60c01e7b06ef02c (diff)
downloadenowars5-service-stldoctor-13b65f01132c41be9ab8d9f92c2c5ca605c366d8.tar.gz
enowars5-service-stldoctor-13b65f01132c41be9ab8d9f92c2c5ca605c366d8.zip
changed repo structure and commited releease files such that default docker-compose worklow commands work in testvm
Diffstat (limited to 'service/Dockerfile')
-rw-r--r--service/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/service/Dockerfile b/service/Dockerfile
new file mode 100644
index 0000000..c932e66
--- /dev/null
+++ b/service/Dockerfile
@@ -0,0 +1,22 @@
+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
+
+COPY entrypoint.sh /
+RUN chmod 755 /entrypoint.sh
+
+COPY cleaner.sh /
+RUN chmod 755 /cleaner.sh
+
+COPY src/ /service/
+
+WORKDIR /service/
+RUN make clean && make
+
+EXPOSE 9000
+ENV RESULTDIR=/data/uploads
+
+ENTRYPOINT ["/entrypoint.sh"]