Skip to content

Commit

Permalink
Containterise application
Browse files Browse the repository at this point in the history
  • Loading branch information
mtheoryx committed May 27, 2018
1 parent 7444895 commit de8a133
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM node:8.11-alpine

# Set up our workspace
WORKDIR /usr/app

# Install app dependencies
COPY package.json .
RUN npm install
RUN npm install --quiet

# App source
COPY . .

# Ports
EXPOSE 3000

# Commands (not for prodcution)
CMD ["npm", "run", "start"]
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ services:
build: .
image: electic-io
container_name: electric-io
command: npm run start
ports:
- 3000:3000
- 3000:3000
volumes: # For file editing, watching, etc
- ./public:/usr/app/public
- ./lib:/usr/app/lib
- ./.data/dashboard.json.sim:/usr/app/.data/dashboard.json.sim
- ./.config:/usr/app/.config
- ./index.js:/usr/app/index.js

0 comments on commit de8a133

Please sign in to comment.