This commit is contained in:
2026-06-21 03:56:59 +03:00
parent f1dd557c5d
commit 1a7d8774c8
+16 -4
View File
@@ -1,11 +1,23 @@
FROM node:24-alpine FROM node:20-bullseye
COPY . /usr/src RUN apt-get update && apt-get install -y \
python3 \
make \
g++ \
cmake \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src WORKDIR /usr/src
RUN npm install COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build RUN npm run build
ENTRYPOINT ["/bin/sh", "-c" , "npm start"] EXPOSE 3000
CMD ["npm", "start"]