From 9eae1d21b6807769373d613710c3d40fbb51c21e Mon Sep 17 00:00:00 2001 From: Anton Roslund Date: Sun, 28 Sep 2025 20:23:18 +0200 Subject: [PATCH] Fix Dockerfiler --- Dockerfile | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c31844..ecb1766 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,15 @@ -FROM node:lts-alpine AS build +FROM node:lts-alpine WORKDIR /app +RUN apk add --no-cache openssl + # Copy only package files and install deps # This layer will be cached as long as package*.json don't change COPY package*.json package-lock.json* ./ -RUN --mount=type=cache,target=/root/.npm npm ci --omit=dev +RUN npm ci -# Copy the rest of your source +# Copy the rest of the source COPY . . -FROM node:lts-alpine - -RUN apk add --no-cache openssl - -USER node:node - -WORKDIR /app - -COPY --from=build /app . - - EXPOSE 8080 \ No newline at end of file