dev1/Dockerfile.server3

18 lines
328 B
Docker

ARG APPPORT=5002
FROM --platform=$TARGETPLATFORM node:20-slim
WORKDIR /app
COPY package*.json ./
RUN apt-get update -y \
&& apt-get install -y --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"]