From 98d80d3d1160a3e52e621ad04b065d3ad995e2da Mon Sep 17 00:00:00 2001 From: Marco Aceti Date: Tue, 21 Jan 2020 15:09:52 +0100 Subject: [PATCH 1/4] Add Dockerfile support --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6a3e329 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:slim + +WORKDIR /usr/src/app +COPY . . + +RUN apt-get update -y +RUN apt-get install gcc -y + +RUN pip3 install -r requirements.txt + +EXPOSE 42010 + +ENTRYPOINT ./maloja start From 2004f7690f1119c391ee0782c79ead7dd0ce3497 Mon Sep 17 00:00:00 2001 From: Marco Aceti Date: Tue, 21 Jan 2020 15:27:27 +0100 Subject: [PATCH 2/4] More logic Dockerfile ordering --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6a3e329..a1b72b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,14 @@ FROM python:slim WORKDIR /usr/src/app -COPY . . RUN apt-get update -y RUN apt-get install gcc -y +COPY requirements.txt . RUN pip3 install -r requirements.txt EXPOSE 42010 +COPY . . ENTRYPOINT ./maloja start From a97a5e2fbf834586a01a131eb1a5d68136840a9b Mon Sep 17 00:00:00 2001 From: krateng Date: Wed, 26 Feb 2020 15:09:53 +0100 Subject: [PATCH 3/4] Update Dockerfile Updated to python package --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1b72b1..cb7e6e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,12 @@ -FROM python:slim +FROM python:3.6-alpine WORKDIR /usr/src/app -RUN apt-get update -y -RUN apt-get install gcc -y +RUN apk update +RUN apk add gcc libxml2-dev libxslt-dev py3-pip libc-dev -COPY requirements.txt . -RUN pip3 install -r requirements.txt +RUN pip3 install malojaserver EXPOSE 42010 -COPY . . -ENTRYPOINT ./maloja start +ENTRYPOINT maloja start From fb882a1af4b2673e445122c1ea6732e83ba6cde9 Mon Sep 17 00:00:00 2001 From: krateng Date: Thu, 19 Mar 2020 18:45:35 +0100 Subject: [PATCH 4/4] Adjusted entrypoint command --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cb7e6e6..2a49020 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,4 @@ RUN pip3 install malojaserver EXPOSE 42010 -ENTRYPOINT maloja start +ENTRYPOINT maloja run