request-inspector/Dockerfile
2024-12-04 18:36:16 -05:00

22 lines
548 B
Docker

# Use the official Node.js 18 image as the base image
FROM node:18
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json (if available)
# (In this case, no dependencies are needed, so this step is optional)
COPY package*.json ./
# Install dependencies (optional step; no dependencies are required for this example)
# RUN npm install
# Copy the server code into the container
COPY . .
# Expose the port the server will run on
EXPOSE 3000
# Command to run the server
CMD ["node", "src/app.js"]