npm / Dockerfile
r3hab's picture
Create Dockerfile
6dda508 verified
raw
history blame contribute delete
223 Bytes
# Use lightweight Node.js Alpine image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy server file
COPY server.js .
# Expose port (default for HTTP)
EXPOSE 3000
# Run the server
CMD ["node", "server.js"]