eee067f0ca
.gitignore was ignoring these files, causing them to be missing on fresh checkout (e.g. after git pull on server), which broke the Docker build. Removed the ignore entries so the files are tracked by git.
21 lines
347 B
Docker
21 lines
347 B
Docker
FROM node:24.11.0-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
COPY nuxt.config.ts ./
|
|
COPY tsconfig.json ./
|
|
|
|
# Увеличиваем память
|
|
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
|
|
|
RUN npm install --production
|
|
|
|
COPY . .
|
|
|
|
# Собираем без таймаута
|
|
RUN npm run build
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", ".output/server/index.mjs"] |