Changed from lts-slim to lts-alpine to reduce image size
This commit is contained in:
+1
-7
@@ -1,10 +1,4 @@
|
|||||||
FROM node:lts-slim
|
FROM node:lts-alpine
|
||||||
|
|
||||||
# Install wget for healthcheck
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install -y wget && \
|
|
||||||
apt-get clean && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ const decodeCookie = (req: Request, _res: Response, next: NextFunction) => {
|
|||||||
app.get(/^(|\/share)\/healthcheck$/, async (_req, res) => {
|
app.get(/^(|\/share)\/healthcheck$/, async (_req, res) => {
|
||||||
if (await immich.accessible()) {
|
if (await immich.accessible()) {
|
||||||
res.send('ok')
|
res.send('ok')
|
||||||
throw new Error('asdf')
|
|
||||||
} else {
|
} else {
|
||||||
res.status(503).send()
|
res.status(503).send()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user