mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 12:07:31 +08:00
Update dockerfile
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# DON'T UPDATE TO node:14-bullseye-slim, see #372.
|
||||
# If the image changed, the second stage image should be changed too
|
||||
FROM node:16-buster-slim
|
||||
FROM node:18-buster-slim
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
WORKDIR /app
|
||||
|
@@ -8,7 +8,7 @@ FROM louislam/uptime-kuma:builder-go AS build_healthcheck
|
||||
############################################
|
||||
# Build in Node.js
|
||||
############################################
|
||||
FROM louislam/uptime-kuma:base-debian AS build
|
||||
FROM louislam/uptime-kuma:base2 AS build
|
||||
WORKDIR /app
|
||||
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
||||
@@ -23,7 +23,7 @@ RUN chmod +x /app/extra/entrypoint.sh
|
||||
############################################
|
||||
# ⭐ Main Image (Slim)
|
||||
############################################
|
||||
FROM louislam/uptime-kuma:base-debian AS release-slim
|
||||
FROM louislam/uptime-kuma:base2 AS release-slim
|
||||
WORKDIR /app
|
||||
|
||||
# Copy app files from build layer
|
||||
@@ -57,7 +57,7 @@ RUN npm run mark-as-nightly
|
||||
############################################
|
||||
# Build an image for testing pr
|
||||
############################################
|
||||
FROM louislam/uptime-kuma:base-debian AS pr-test
|
||||
FROM louislam/uptime-kuma:base2 AS pr-test
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -89,7 +89,7 @@ CMD ["npm", "run", "start-pr-test"]
|
||||
############################################
|
||||
# Upload the artifact to Github
|
||||
############################################
|
||||
FROM louislam/uptime-kuma:base-debian AS upload-artifact
|
||||
FROM louislam/uptime-kuma:base2 AS upload-artifact
|
||||
WORKDIR /
|
||||
RUN apt update && \
|
||||
apt --yes install curl file
|
||||
|
Reference in New Issue
Block a user