From 3ea2e9afcb1fcd209ae99f75f2a93f57200b1241 Mon Sep 17 00:00:00 2001 From: Henrik Tilly Date: Thu, 5 Sep 2024 19:27:30 +0200 Subject: [PATCH] changing to 22.8-slim --- Dockerfile | 8 +++----- Dockerfile-local | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 447ff9a..2b2502c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,10 @@ # Use the official Node.js image based on Alpine Linux # The --platform flag is used here to make sure we use a multi-platform base image -FROM --platform=$BUILDPLATFORM node:22-alpine AS base +FROM --platform=$BUILDPLATFORM node:22.8-slim AS base # Update and install git (if needed for your application) -RUN apk update && \ - apk upgrade && \ - apk add git && \ - git clone https://github.com/htilly/zenmusic.git +#RUN apk update && \ +# apk upgrade # Clear npm cache to reduce image size and avoid potential issues RUN npm cache clean --force diff --git a/Dockerfile-local b/Dockerfile-local index 44aa02c..2b2502c 100644 --- a/Dockerfile-local +++ b/Dockerfile-local @@ -1,10 +1,10 @@ # Use the official Node.js image based on Alpine Linux # The --platform flag is used here to make sure we use a multi-platform base image -FROM --platform=$BUILDPLATFORM node:22-alpine AS base +FROM --platform=$BUILDPLATFORM node:22.8-slim AS base # Update and install git (if needed for your application) -RUN apk update && \ - apk upgrade +#RUN apk update && \ +# apk upgrade # Clear npm cache to reduce image size and avoid potential issues RUN npm cache clean --force