Commit d0aa5f4c by Amir Aharon

dockerize this!

parent a21490d3
FROM node:8-alpine
# Create app directory
WORKDIR /usr/src/app
## NODE PART
# Install app dependencies
COPY package.json .
# install dependencies
RUN npm install
# Bundle app source
COPY app.js .
CMD [ "npm", "start"]
\ No newline at end of file
version: '2'
services:
ws-event-simulator:
environment:
file: "/tmp/events.json"
delay: 10
image: municipalitybank.com:5050/mcx/devops/ws-event-simulator
ports:
- "8053:8053"
volumes:
- "/home/amir/git/ipgallery/transportation/doc/events.json:/tmp/events.json"
\ No newline at end of file
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
"description": "emulate events in websocket", "description": "emulate events in websocket",
"main": "app.js", "main": "app.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"start": "node app.js"
}, },
"keywords": [ "keywords": [
"event", "event",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment