From 687a72261cf5820a4e8d925f56020c58a9d7e6b7 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Fri, 7 Mar 2025 13:44:23 +0800 Subject: [PATCH] Changed from lts-slim to lts-alpine to reduce image size --- Dockerfile | 8 +------- app/src/index.ts | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a3dc09..f9f671f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,4 @@ -FROM node:lts-slim - -# Install wget for healthcheck -RUN apt-get update && \ - apt-get install -y wget && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* +FROM node:lts-alpine WORKDIR /app diff --git a/app/src/index.ts b/app/src/index.ts index 02dbd02..3453727 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -66,7 +66,6 @@ const decodeCookie = (req: Request, _res: Response, next: NextFunction) => { app.get(/^(|\/share)\/healthcheck$/, async (_req, res) => { if (await immich.accessible()) { res.send('ok') - throw new Error('asdf') } else { res.status(503).send() }