Skip to content

A self-hosted media server and file management system

fix: dockerfile runs npm ci everytime code changes

aminnausin1099daae88f1
diff --git a/Dockerfile b/Dockerfile
index de71081c..7c442807 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,12 +37,14 @@ FROM node:24-alpine AS builder
WORKDIR /var/www/html
-COPY . .
+COPY package.json package-lock.json ./
ENV APP_ENV=production
RUN npm ci
+COPY . .
+
RUN npm run build-only && \
npm cache clean --force && \
rm -rf node_modules