# Use an official Node.js runtime as the base image
FROM node:14-alpine
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the entire project
COPY . .
# Expose the port on which the app runs (3000 as per typical Node.js apps)
EXPOSE 3000
# Command to run the application
CMD ["npm", "start"
This my docker file for wiscow application.
The image getting exited before started. Can anyone suggest a solution?