From 0eaacba591ef79c1c9a7dccb026f768a3e8a9a64 Mon Sep 17 00:00:00 2001 From: Chris Chase Date: Tue, 28 Jul 2020 23:19:14 +0930 Subject: [PATCH] Added BASE_ULR ENV, and reordered docker file NPM install --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76f271c..4b275c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM alpine:3.10 ENV CRON_PATH /etc/crontabs +ENV BASE_URL / RUN mkdir /crontab-ui; touch $CRON_PATH/root; chmod +x $CRON_PATH/root @@ -18,9 +19,13 @@ RUN apk --no-cache add \ supervisor COPY supervisord.conf /etc/supervisord.conf -COPY . /crontab-ui -RUN npm install + +COPY package*.json /crontab-ui/ + +RUN npm install + +COPY . /crontab-ui ENV HOST 0.0.0.0