Skip to content

Instantly share code, notes, and snippets.

@Robokishan
Last active August 15, 2019 16:44
Show Gist options
  • Save Robokishan/daa2dcf4319f04466b0dc530a73a77e9 to your computer and use it in GitHub Desktop.
Save Robokishan/daa2dcf4319f04466b0dc530a73a77e9 to your computer and use it in GitHub Desktop.
Docker file for nodemon and fish pre installed so that easily access all linux flexibilty very easily
FROM node:10
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y fish
COPY package*.json ./
COPY . .
RUN npm install
RUN npm install -g nodemon
EXPOSE 8080/tcp
CMD ["npm","start"]
@Robokishan
Copy link
Author

Run following command as per requirement

in sequence

  1. docker build -t nodemon/server .
  2. docker run -it -v $PWD:/usr/src/app -p 8080:8080 --name private-server nodemon/server
    => docker attach private-server
    => docker exec -it private-server fish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment