Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save 0xAungkon/f538b11ed48537e1f07b186bf3501756 to your computer and use it in GitHub Desktop.

Select an option

Save 0xAungkon/f538b11ed48537e1f07b186bf3501756 to your computer and use it in GitHub Desktop.
node next react dockerfile
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