Files
sulthan f9ce6f8221 fix: revert npm ci back to npm install in docker builds
package-lock.json was generated on Windows and only locks
@esbuild/win32-x64, no linux-x64 entry. npm ci installs strictly
from lockfile and fails with "package @esbuild/linux-x64 could not
be found" on Linux build hosts. npm install resolves the correct
platform binary even when absent from the lock.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-18 13:58:15 +07:00

12 lines
322 B
Docker

FROM node:20-alpine AS node-builder
WORKDIR /app
COPY package.json ./
RUN npm install --ignore-scripts
COPY . .
RUN npm run build:icons && npm run build
FROM nginx:alpine
RUN rm /etc/nginx/conf.d/default.conf
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=node-builder /app/public /var/www/html/public