Public Repository

Last pushed: 2 years ago
Short Description
ship API
Full Description

emit ship data by web socket

build

docker build -t kurosuke/ship_api .

Dockerfile

FROM node
MAINTAINER kurosuke

ENV ship_api_dir /ship_api
RUN mkdir ${ship_api_dir}
ADD ship_api.tgz ${ship_api_dir}
WORKDIR ${ship_api_dir}
RUN npm install

run

docker run  --name ship_api -d -p 8085:8085 kurosuke/ship_api node index.js

run test

docker run -it --rm --name ship_api -p 8085:8085 kurosuke/ship_api bash

service

http://`docker-machine ip default`:8085/
Docker Pull Command
Owner
kurosuke

Comments (0)