Skip to content

Instantly share code, notes, and snippets.

@skeep
Created April 21, 2018 19:47
Show Gist options
  • Save skeep/5077ba821636f2da053d2299eb2ecda7 to your computer and use it in GitHub Desktop.
Save skeep/5077ba821636f2da053d2299eb2ecda7 to your computer and use it in GitHub Desktop.
FROM node:carbon
# Create app directory
RUN mkdir -p /usr/src/app
RUN chmod -R 777 /usr/src/app
WORKDIR /usr/src/app
# Copy code
COPY package.json /usr/src/app/
COPY . /usr/src/app
RUN npm install -g nodemon
# This is our secret sauce
RUN git clone https://github.com/vishnubob/wait-for-it.git
# Run config
EXPOSE 8080
CMD ["nodemon", "server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment