mirror of
https://github.com/lklynet/hypermind.git
synced 2026-05-03 17:40:29 +00:00
27 lines
453 B
Docker
27 lines
453 B
Docker
FROM node:18-bookworm
|
|
|
|
WORKDIR /app
|
|
|
|
# Install build dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
python3 \
|
|
make \
|
|
g++ \
|
|
cmake \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies (forcing build from source to ensure glibc compatibility)
|
|
RUN npm install --production --build-from-source
|
|
|
|
COPY server.js ./
|
|
|
|
ENV PORT=3000
|
|
ENV NODE_ENV=production
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "server.js"]
|