Skip to content

Instantly share code, notes, and snippets.

@Chrispassold
Last active February 18, 2021 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chrispassold/838ec240ecaace8cba62453955e5a5d8 to your computer and use it in GitHub Desktop.
Save Chrispassold/838ec240ecaace8cba62453955e5a5d8 to your computer and use it in GitHub Desktop.
node_modules
npm-debug.log

executar para rodar -> docker-compose up --build

version: "3.9" # optional since v1.27.0
services:
web:
build: .
ports:
- "8080:3000"
FROM node:14
# Create app directory
WORKDIR /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
# Bundle app source
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment