Update dockerfile

This commit is contained in:
Louis Lam
2023-02-04 18:37:12 +08:00
parent 0b40c65139
commit 27eddb7253
3 changed files with 10 additions and 11 deletions

View File

@@ -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

View File

@@ -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