added Dockerfile and docker-compose.yml

Build:

docker-compose build

Run (Provide ./Lora-Map/config/requests.conf and ./Lora-Map/config/settings.conf):

docker-compose up -d
This commit is contained in:
Jannis Warnat 2019-06-07 17:37:12 +02:00
parent 9f7e6b4b24
commit c5e7b9e103
2 changed files with 25 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM mono:latest
RUN apt-get update && apt-get install -y curl gnupg
RUN curl -L http://repo.blubbfish.net/blubb.gpg.key | apt-key add -
RUN echo "deb http://repo.blubbfish.net blubb main" | tee "/etc/apt/sources.list.d/blubb.list"
RUN apt-get update && apt-get install -y loramap
RUN chmod u+x /usr/local/bin/loramap/Lora-Map.exe
WORKDIR /usr/local/bin/loramap

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '2.3'
services:
loramap:
build:
context: .
image: janniswarnat/loramap
command: ["mono","./Lora-Map.exe"]
ports:
- 8080:8080
volumes:
- "./Lora-Map/config/requests.conf:/etc/loramap/requests.conf"
- "./Lora-Map/config/settings.conf:/etc/loramap/settings.conf"