dev1/Dockerfile.server3
2025-07-08 18:47:29 +00:00

14 lines
344 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/*
COPY package*.json ./
RUN npm ci --omit=dev --ignore-scripts
COPY . .
ENV PORT=5002
EXPOSE 5002
CMD ["npm","run","server3"]