Skip to content

Instantly share code, notes, and snippets.

@albovieira
Created July 6, 2018 02:09
Show Gist options
  • Save albovieira/89a9916ba7ad43ce3891ed0c59c64aa8 to your computer and use it in GitHub Desktop.
Save albovieira/89a9916ba7ad43ce3891ed0c59c64aa8 to your computer and use it in GitHub Desktop.
dockerfile
FROM node:8.9.2
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN apt-get update && apt-get install vim -y && npm install -g yarn typescript nodemon && yarn
COPY . /usr/src/app
EXPOSE 3000
CMD [ "yarn", "dev" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment