kuma / Dockerfile
ZSCGR's picture
Update Dockerfile
ca187ea verified
raw
history blame contribute delete
687 Bytes
FROM chipsman/uptime-kuma:latest
# 安装 Node.js
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
# 创建 Supervisor 日志目录并设置权限
RUN mkdir -p /var/log/supervisor/ && \
chown -R node:node /var/log/supervisor/
# 创建 Supervisor 运行目录并设置权限
RUN mkdir -p /var/run/supervisor/ && \
chown -R node:node /var/run/supervisor/
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"]