Added BASE_ULR ENV, and reordered docker file NPM install

pull/130/head
Chris Chase 2020-07-28 23:19:14 +09:30
parent 593f6321e4
commit 0eaacba591
1 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,7 @@
FROM alpine:3.10 FROM alpine:3.10
ENV CRON_PATH /etc/crontabs ENV CRON_PATH /etc/crontabs
ENV BASE_URL /
RUN mkdir /crontab-ui; touch $CRON_PATH/root; chmod +x $CRON_PATH/root RUN mkdir /crontab-ui; touch $CRON_PATH/root; chmod +x $CRON_PATH/root
@ -18,10 +19,14 @@ RUN apk --no-cache add \
supervisor supervisor
COPY supervisord.conf /etc/supervisord.conf COPY supervisord.conf /etc/supervisord.conf
COPY . /crontab-ui
COPY package*.json /crontab-ui/
RUN npm install RUN npm install
COPY . /crontab-ui
ENV HOST 0.0.0.0 ENV HOST 0.0.0.0
ENV PORT 8000 ENV PORT 8000