Dockerizing the Notes application

In the notes directory, create a file named Dockerfile containing the following:

FROM node:10  ENV DEBUG="notes:*,messages:*" ENV SEQUELIZE_CONNECT="models/sequelize-docker-mysql.yaml" ENV NOTES_MODEL="sequelize" ENV USER_SERVICE_URL="http://userauth:3333" ENV PORT="3000" ENV NOTES_SESSIONS_DIR="/sessions" # ENV TWITTER_CONSUMER_KEY="..."# ENV TWITTER_CONSUMER_SECRET="..."# Use this line when the Twitter Callback URL# has to be other than localhost:3000# ENV TWITTER_CALLBACK_HOST=http://45.55.37.74:3000  RUN mkdir -p /notesapp /notesapp/minty /notesapp/partials /notesapp/public /notesapp/routes /notesapp/theme /notesapp/viewsCOPY minty/ /notesapp/minty/COPY models/*.mjs models/sequelize-docker-mysql.yaml ...

Get Node.js Web Development - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.