dev1/Dockerfile.server3

14 lines
352 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 ["node","backend/server3.js"]