mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-10-05 06:13:59 +00:00
Replace pnpm-lock.yaml with package-lock.json. allowBuilds for esbuild becomes package.json#allowScripts. The Dockerfile installs with npm ci --omit=dev and no longer prepares pnpm through corepack; .npmrc keeps engine-strict, which npm honours natively. minimumReleaseAgeExclude is dropped rather than translated: pnpm's minimumReleaseAge was never set, so the 30-entry exclusion list had nothing to exclude from. Direct dependency versions resolve identically to the pnpm lockfile.
47 lines
866 B
Docker
47 lines
866 B
Docker
FROM node:24-bookworm-slim AS base
|
|
|
|
ENV NODE_ENV=production
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
fonts-noto \
|
|
fonts-noto-color-emoji \
|
|
libasound2 \
|
|
libatk-bridge2.0-0 \
|
|
libatk1.0-0 \
|
|
libcairo2 \
|
|
libcups2 \
|
|
libdbus-1-3 \
|
|
libdrm2 \
|
|
libexpat1 \
|
|
libgbm1 \
|
|
libglib2.0-0 \
|
|
libgtk-3-0 \
|
|
libnspr4 \
|
|
libnss3 \
|
|
libpango-1.0-0 \
|
|
libx11-6 \
|
|
libx11-xcb1 \
|
|
libxcb1 \
|
|
libxcomposite1 \
|
|
libxdamage1 \
|
|
libxext6 \
|
|
libxfixes3 \
|
|
libxrandr2 \
|
|
libxshmfence1 \
|
|
libxtst6 \
|
|
xdg-utils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY package.json package-lock.json ./
|
|
COPY scripts/ensure-browser.js ./scripts/ensure-browser.js
|
|
RUN npm ci --omit=dev \
|
|
&& npm run browser:ensure
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 3000
|
|
CMD ["npm", "start"]
|