CoolFace
Apppublic

miolove/Monitoring

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile23 linesDownload Raw Back to root
1FROM alpine AS builder2 3RUN apk add --no-cache nodejs npm git curl jq python3 python3-dev py3-pip4 5RUN adduser -D app6USER app7WORKDIR /home/app8 9RUN git clone https://github.com/lovesukimio/Monitoring.git Monitoring10WORKDIR /home/app/Monitoring11RUN npm ci --omit dev && npm run download-dist12 13ENV VIRTUAL_ENV=/home/app/venv14RUN python3 -m venv $VIRTUAL_ENV15ENV PATH="$VIRTUAL_ENV/bin:$PATH"16 17RUN pip install --no-cache-dir requests webdavclient318 19COPY --chown=app:app sync_data.sh /home/app/Monitoring/20RUN chmod +x /home/app/Monitoring/sync_data.sh21 22EXPOSE 300123CMD ["/bin/sh", "-c", "./sync_data.sh & sleep 30 && node server/server.js"]