Browse Source

add Dockerfile

master
lihua 5 years ago
parent
commit
85a9fac2d1
  1. 5
      Dockerfile
  2. 14
      docker-compose.yml

5
Dockerfile

@ -0,0 +1,5 @@
FROM alpine:latest
ADD ./deviceIDServer /opt/deviceIDServer
EXPOSE 6000
WORKDIR /opt
ENTRYPOINT ["./deviceIDServer"]

14
docker-compose.yml

@ -0,0 +1,14 @@
version: '2'
services:
deviceIDServer:
build: .
restart: always
container_name: "deviceIDServer"
volumes:
- ./config.json:/opt/config.json
ports:
- 6000:6000
networks:
default:
external:
name: iotx_net
Loading…
Cancel
Save