File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 22# Build in Golang
33# Run npm run build-healthcheck-armv7 in the host first, another it will be super slow where it is building the armv7 healthcheck
44# ###########################################
5- FROM golang:1-bookworm
5+ FROM golang:1-buster
66WORKDIR /app
77ARG TARGETPLATFORM
88COPY ./extra/ ./extra/
99
10+ # # Switch to archive.debian.org
11+ RUN sed -i '/^deb/s/^/#/' /etc/apt/sources.list \
12+ && echo "deb http://archive.debian.org/debian buster main contrib non-free" | tee -a /etc/apt/sources.list \
13+ && echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" | tee -a /etc/apt/sources.list \
14+ && echo "deb http://archive.debian.org/debian buster-updates main contrib non-free" | tee -a /etc/apt/sources.list
15+
1016# Compile healthcheck.go
1117RUN apt update && \
1218 apt --yes --no-install-recommends install curl && \
Original file line number Diff line number Diff line change @@ -39,11 +39,14 @@ class SimpleMigrationServer {
3939 this . app . get ( "/" , ( req , res ) => {
4040 res . set ( "Content-Type" , "text/html" ) ;
4141
42- // HTML meta tag redirect to /status
42+ // Don't use meta tag redirect, it may cause issues in Chrome (#6223)
4343 res . end ( `
4444 <html lang="en">
45- <head><meta http-equiv="refresh" content="0; URL=/migrate-status" /></head>
46- <body>Migration server is running.</body>
45+ <head><title>Uptime Kuma Migration</title></head>
46+ <body>
47+ Migration is in progress, it may take some time. You can check the progress in the console, or
48+ <a href="/migrate-status" target="_blank">click here to check</a>.
49+ </body>
4750 </html>
4851 ` ) ;
4952 } ) ;
You can’t perform that action at this time.
0 commit comments