Skip to content

Instantly share code, notes, and snippets.

@yudapc
Last active March 13, 2019 08:29
Show Gist options
  • Save yudapc/038db02296bbe56fcf215bb038274b38 to your computer and use it in GitHub Desktop.
Save yudapc/038db02296bbe56fcf215bb038274b38 to your computer and use it in GitHub Desktop.
sailsjs - docker
Build image:
$ docker build -t yudapc/sailsjs:0.0.1 .
Build container:
$ docker-compose up -d
Stop Container:
$ docker-compose down -v
version: '2'
services:
sailsjs:
image: yudapc/sailsjs:0.0.1
container_name: sailsjs
command: sails lift
ports:
- 1337:1337
volumes:
- ./app:/usr/src/app
FROM node:11-alpine
EXPOSE 1337
WORKDIR /usr/src/app
RUN npm install sails -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment