Skip to content

Instantly share code, notes, and snippets.

@lucasemanuel
Created May 18, 2021 14:40
Show Gist options
  • Save lucasemanuel/ef7c9e9799ab6ddb485fb19a3907a30b to your computer and use it in GitHub Desktop.
Save lucasemanuel/ef7c9e9799ab6ddb485fb19a3907a30b to your computer and use it in GitHub Desktop.
Docker - Node
version: "3"
services:
app:
build: .
command: yarn serve
ports:
- "3003:3000"
volumes:
- .:/usr/app
FROM node:lts-alpine
WORKDIR /usr/app
COPY yarn.lock package.json ./
RUN yarn install
COPY . .
EXPOSE 3000
CMD ["yarn", "serve"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment