Skip to content

Instantly share code, notes, and snippets.

@odirleiborgert
Created September 11, 2018 11:49
Show Gist options
  • Save odirleiborgert/3d7573839dbc35f474f936e3f7e66576 to your computer and use it in GitHub Desktop.
Save odirleiborgert/3d7573839dbc35f474f936e3f7e66576 to your computer and use it in GitHub Desktop.
Docker para rodar uma aplicação node
version: '3'
services:
app:
build: .
command: npm start
ports:
- "3000:3000"
volumes:
- .:/usr/app
FROM node:alpine
WORKDIR /usr/app
COPY package.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "npm", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment