From d01b3df709ff3116ed25a51f36dfc6084c4f729d Mon Sep 17 00:00:00 2001 From: Lamaun <26430817+Lamaun@users.noreply.github.com> Date: Wed, 12 Jun 2019 08:51:12 +0200 Subject: [PATCH] Dockerfile --- Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bd7f1df --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM ubuntu + +RUN apt-get update + +RUN apt-get install -y \ + apt-utils \ + curl \ + wget \ + libsm6 \ + libxrender1 \ + libxext6 \ + nano \ + ghostscript \ + python3-minimal \ + python3-setuptools \ + python3-pip \ + && ln -s /usr/bin/python3 /usr/bin/python \ + && ln -s /usr/bin/pip3 /usr/bin/pip + +EXPOSE 5000 + +ENV LC_ALL=C.UTF-8 +ENV LANG=C.UTF-8 + +WORKDIR /excalibur/ +COPY . ./ + +RUN pip3 install . + +RUN excalibur initdb + +RUN cat /root/excalibur/excalibur.cfg | sed 's/127.0.0.1/0.0.0.0/g' > /root/excalibur/excalibur.cfg2; \ + mv /root/excalibur/excalibur.cfg2 /root/excalibur/excalibur.cfg