mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 10:14:03 +00:00
24 lines
616 B
Text
24 lines
616 B
Text
FROM louislam/uptime-kuma:base-alpine AS build
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
RUN npm install --legacy-peer-deps && \
|
|
npm run build && \
|
|
npm prune --production && \
|
|
chmod +x /app/extra/entrypoint.sh
|
|
|
|
|
|
FROM louislam/uptime-kuma:base-alpine AS release
|
|
WORKDIR /app
|
|
|
|
# Copy app files from build layer
|
|
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
|