diff --git a/Dockerfile b/Dockerfile index b38e6e6..0e48eae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ WORKDIR /app # Copy package files COPY package*.json ./ -# Install dependencies (production only) -RUN npm ci --only=production +# Install all dependencies (needed for build) +RUN npm ci # Copy source code COPY . . @@ -15,6 +15,9 @@ COPY . . # Build the application RUN npm run build +# Remove devDependencies to reduce image size +RUN npm prune --production + # Create data directory for encrypted local storage RUN mkdir -p /app/data && chmod 755 /app/data