FROM fascinated/docker-images:node-pnpm-latest # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in package.json RUN pnpm install # Make port 3000 available to the world outside this container EXPOSE 3000 # Define environment variable ENV NODE_ENV=production # Run app.js when the container launches CMD ["pnpm", "start"]