Skip to content

Instantly share code, notes, and snippets.

@ulhas
Created April 9, 2017 20:33
Show Gist options
  • Save ulhas/01bcd95d0a04719bd1bd8007036e901b to your computer and use it in GitHub Desktop.
Save ulhas/01bcd95d0a04719bd1bd8007036e901b to your computer and use it in GitHub Desktop.
Docker file for SailsJS app
FROM node:latest
RUN npm install -g sails grunt npm-check-updates
COPY ./package.json /package.json
RUN npm install
RUN npm install --save sails-postgresql@beta
COPY ./compose/sails/entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r//' /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY ./compose/sails/start-dev.sh /start-dev.sh
RUN sed -i 's/\r//' /start-dev.sh
RUN chmod +x /start-dev.sh
WORKDIR /app
ENTRYPOINT ["/entrypoint.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment