From ef2a2c817e3fba22128bb171abd92a5fc76030dc Mon Sep 17 00:00:00 2001 From: krateng Date: Mon, 1 Jun 2020 18:22:16 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dcba5bb..ba6578c 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ I can support you with issues best if you use **Alpine Linux**. In my experience 5) (Recommended) Until I have a proper service implemented, I would recommend setting two cronjobs for maloja: ``` -@reboot maloja start +@reboot sleep 15 && maloja start 42 0 * * * maloja restart ``` From e531dc4007657ecdf2b3f11a88054a5b18fa10a0 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 6 Jun 2020 11:53:42 +0200 Subject: [PATCH 2/2] Remove pip3 and dependencies after installing --- Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46f6e41..44c6960 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,18 @@ -FROM python:3.6-alpine +FROM python:3-alpine WORKDIR /usr/src/app -RUN apk update -RUN apk add gcc libxml2-dev libxslt-dev py3-pip libc-dev linux-headers -RUN pip3 install psutil - -RUN pip3 install malojaserver +RUN apk add --no-cache --virtual .build-deps \ + gcc \ + libxml2-dev \ + libxslt-dev \ + py3-pip \ + libc-dev \ + linux-headers \ + && \ + pip3 install psutil && \ + pip3 install malojaserver && \ + apk del .build-deps EXPOSE 42010