Created
June 4, 2024 14:50
-
-
Save 0xAungkon/f538b11ed48537e1f07b186bf3501756 to your computer and use it in GitHub Desktop.
node next react dockerfile
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
| FROM node:latest | |
| WORKDIR /app | |
| COPY . . | |
| RUN apt update; apt install nodejs npm -y | |
| RUN npm install | |
| RUN npm install -g nodemon | |
| RUN npm uninstall bcrypt | |
| RUN npm install bcryptjs | |
| RUN npm install bcrypt | |
| RUN npm uninstall mongoose | |
| RUN npm install [email protected] | |
| EXPOSE 5000 | |
| CMD ["npm", "run"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment