# Base Image FROM node:22 # Work Directory WORKDIR /usr/src/app # Install essential packages COPY package*.json ./ RUN npm install # Install net tools RUN apt-get update && apt-get install -y \ net-tools \ netcat-openbsd # COPY application code COPY . . # Expose 3000 port EXPOSE 3000 # Execute CMD ["node", "server.js"]