|
|
@ -4,9 +4,7 @@ WORKDIR /app
|
|
|
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
|
|
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
|
|
|
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
COPY . .
|
|
|
|
RUN npm ci && \
|
|
|
|
RUN npm ci --production && \
|
|
|
|
npm run build && \
|
|
|
|
|
|
|
|
npm ci --production && \
|
|
|
|
|
|
|
|
chmod +x /app/extra/entrypoint.sh
|
|
|
|
chmod +x /app/extra/entrypoint.sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -22,9 +20,11 @@ HEALTHCHECK --interval=60s --timeout=30s --start-period=180s --retries=5 CMD nod
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--", "extra/entrypoint.sh"]
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--", "extra/entrypoint.sh"]
|
|
|
|
CMD ["node", "server/server.js"]
|
|
|
|
CMD ["node", "server/server.js"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM release AS nightly
|
|
|
|
FROM release AS nightly
|
|
|
|
RUN npm run mark-as-nightly
|
|
|
|
RUN npm run mark-as-nightly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Upload the artifact to Github
|
|
|
|
# Upload the artifact to Github
|
|
|
|
FROM louislam/uptime-kuma:base-debian AS upload-artifact
|
|
|
|
FROM louislam/uptime-kuma:base-debian AS upload-artifact
|
|
|
|
WORKDIR /
|
|
|
|
WORKDIR /
|
|
|
|