0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-28 10:36:39 +01:00
uptime-kuma/docker/dockerfile-alpine

28 lines
674 B
Plaintext
Raw Normal View History

FROM louislam/uptime-kuma:base-alpine AS build
WORKDIR /app
2021-10-07 15:24:10 +02:00
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
2023-01-09 14:01:45 +01:00
COPY .npmrc .npmrc
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm ci --omit=dev
COPY . .
2023-01-09 14:01:45 +01:00
RUN chmod +x /app/extra/entrypoint.sh
FROM louislam/uptime-kuma:base-alpine AS release
WORKDIR /app
# Copy app files from build layer
2021-09-12 19:43:14 +02:00
COPY --from=build /app /app
EXPOSE 3001
VOLUME ["/app/data"]
HEALTHCHECK --interval=60s --timeout=30s --start-period=180s --retries=5 CMD node extra/healthcheck.js
ENTRYPOINT ["/usr/bin/dumb-init", "--", "extra/entrypoint.sh"]
CMD ["node", "server/server.js"]
FROM release AS nightly
RUN npm run mark-as-nightly