FROM node:14
# Create app directoryWORKDIR /usr/src/app
# Install app dependencies# A wildcard is used to ensure both package.json AND package-lock.json are copied# where available (npm@5+)COPY package*.json ./
RUN npm install
# If you are building your code for production# RUN npm ci --only=production# Bundle app sourceCOPY . .
EXPOSE 3000
CMD [ "node", "server/server.js" ]
🚀 Deploy in AWS - Amazon Web Services
Inside Amazon EC2 instance (public instance)
psql -h [endpoint rds] -u [usuário] -w postgres
Inside Database
INSERT TO blog.postVALUES(7,'Isaac','DevOps Engineer', '2021-11-01 23:54:02');
SELECT*FROMblog.post;