From c28e616ea5823570ae77ebd8787ecd160a85c7a5 Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Wed, 16 Oct 2019 12:32:21 +0200 Subject: [PATCH] Faster rebuildung by moving system relevant stuff up --- Dockerfile | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9265143..168d461 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,21 +8,6 @@ RUN apt-get update &&\ # Clean up APT when done. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* - - -# private/{scripts, administrate.py}, public/{scripts, userapplications.py}, config/userapplicatonsconfig.ini -#configs, logs, db -COPY config/applicationsconfig.ini /app/data/applicationsconfig.ini - -# admin scripts -COPY private/ /app/admin/ - -# user accessible scripts -# Make TILDE_ENV -COPY public/ /app/user/ -#SSH config into /etc :) -COPY config/etc /etc - # create user for applications RUN useradd -Md /app/user/ -s /app/user/userapplication.py tilde @@ -34,11 +19,23 @@ RUN usermod -U tilde RUN useradd -Md /app/admin -s /app/admin/administrate.py admin # privilege separation directory RUN mkdir -p /var/run/sshd - # expose SSH port EXPOSE 22 ENV TILDE_CONF="/app/data/applicationsconfig.ini" +# private/{scripts, administrate.py}, public/{scripts, userapplications.py}, config/userapplicatonsconfig.ini +#configs, logs, db +COPY config/applicationsconfig.ini /app/data/applicationsconfig.ini + +# admin scripts +COPY private/ /app/admin/ + +# user accessible scripts +# Make TILDE_ENV +COPY public/ /app/user/ +#SSH config into /etc :) +COPY config/etc /etc + RUN touch /app/data/applications.sqlite RUN touch /app/data/applications.log # Doesnt work, @TODO why