Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - Dockerfile for easy deploy #26

Open
daskalovst opened this issue Mar 9, 2023 · 1 comment
Open

Request - Dockerfile for easy deploy #26

daskalovst opened this issue Mar 9, 2023 · 1 comment

Comments

@daskalovst
Copy link

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
Copy link
Author

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant