f9ce6f8221
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>
12 lines
322 B
Docker
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
|