Created
March 8, 2023 04:10
-
-
Save balasista/2a35fc06631a249454b4efe08fb09f7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use an official Node.js runtime as a parent image | |
| FROM node:14-alpine | |
| # Set the working directory to /app | |
| WORKDIR /app | |
| # Copy the package.json and package-lock.json files to the working directory | |
| COPY package*.json ./ | |
| # Install the dependencies | |
| RUN npm install | |
| # Copy the rest of the application code to the working directory | |
| COPY . . | |
| # Expose port 8080 | |
| EXPOSE 9876 | |
| # Start the application | |
| CMD ["npm", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment