snstac / adsbcot

Display Aircraft in TAK - ADS-B to TAK Gateway
https://adsbcot.rtfd.io
Apache License 2.0
86 stars 22 forks source link

Request - Dockerfile for easy deploy #26

Open daskalovst opened 1 year ago

daskalovst commented 1 year ago

Will be grate if there exist docker file to build and start this application inside docker container. I am ready to help here but unfortunately i cannot install and run any of your applications.

daskalovst commented 1 year ago
  1. create work dir sudo mkdir adsbcot
  2. go to the work dir cd adsbcot 3.create dockerfile sudo nano Dockerfile `FROM python:3.9-slim-buster

RUN apt-get update && apt-get install -y \ build-essential \ && pip install --upgrade pip \ && pip install adsbcot[with_pymodes]

COPY adsbcot.ini /etc/

CMD ["adsbcot", "-c", "/etc/adsbcot.ini"]

` 4.Save Docker file Ctrl+X "Y" Enter

  1. create your config sudo nano adsbcot.ini Paste your config here 6.Save your conig Ctrl+X "Y" Enter

7.Build the container sudo docker build --rm -t adsbcot .

8.Run the container sudo docker run --rm -it adsbcot