dev1/Dockerfile.server3

12 lines
328 B
Docker

ARG APPPORT=5002
FROM node:20-slim
WORKDIR /app
COPY package*.json ./
RUN apt-get update -y \
&& apt-get install -y build-essential python3 make g++ --no-install-recommends python3 git \
&& rm -rf /var/lib/apt/lists/*
RUN npm ci --omit=dev --ignore-scripts
COPY . .
ENV PORT=5002
EXPOSE 5002
CMD ["node", "backend/server3.js"]