mirror of
https://github.com/lklynet/hypermind.git
synced 2026-05-04 01:50:33 +00:00
d25e8e793b
- Switch to node:18-bookworm for better stability - Add required build tools (python3, make, g++) - Use npm ci for more reliable production installs - Update package.json metadata and dependencies
22 lines
344 B
Docker
22 lines
344 B
Docker
FROM node:18-bookworm
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV npm_config_build_from_source=true
|
|
ENV PYTHON=/usr/bin/python3
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci --only=production
|
|
|
|
COPY server.js ./
|
|
|
|
ENV PORT=3000
|
|
ENV NODE_ENV=production
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "server.js"]
|