|
FROM chipsman/uptime-kuma:latest |
|
|
|
|
|
|
|
RUN apk update && \ |
|
apk add --no-cache nodejs npm git |
|
|
|
|
|
RUN mkdir -p /app/data && chown -R node:node /app |
|
|
|
RUN npm install npm -g |
|
|
|
USER root |
|
RUN apk --no-cache add curl supervisor |
|
|
|
RUN mkdir -p /var/log/supervisor/ && \ |
|
chown -R node:node /var/log/supervisor/ |
|
|
|
|
|
RUN mkdir -p /var/run/supervisor/ && \ |
|
chown -R node:node /var/run/supervisor/ |
|
|
|
USER root |
|
WORKDIR /home/app |
|
RUN curl -LO https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && \ |
|
chmod +x cloudflared-linux-amd64 && \ |
|
mv cloudflared-linux-amd64 /usr/local/bin/cloudflared |
|
|
|
COPY ../supervisor.conf /etc/supervisor/supervisord.conf |
|
COPY ../start.sh /usr/bin/start.sh |
|
|
|
USER node |
|
WORKDIR /app |
|
|
|
EXPOSE 3001 |
|
|
|
CMD ["sh", "/usr/bin/start.sh"] |