Use the slim base for the Docker image
All checks were successful
/ build (push) Successful in 1m35s
/ deploy (push) Has been skipped

This saves about 85% of the resulting image size.
This commit is contained in:
Hornwitser 2025-09-07 15:01:51 +02:00
parent 5898a46a1b
commit 732566a29c

View file

@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: © 2025 Hornwitser <code@hornwitser.no> # SPDX-FileCopyrightText: © 2025 Hornwitser <code@hornwitser.no>
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
# Based on Next.js's docker image example # Based on Next.js's docker image example
FROM node:22 AS base FROM node:22-slim AS base
# Install dependencies only when needed # Install dependencies only when needed
FROM base AS deps FROM base AS deps