diff --git a/Dockerfile b/Dockerfile index 817ca6d6..95b17724 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,18 +5,19 @@ ENV PYTHONUNBUFFERED 1 COPY pyproject.toml . COPY poetry.lock . -RUN apt-get update && apt-get install -y libjpeg-dev python3 python3-pip python3-venv +RUN apt-get update && apt-get install -y libjpeg-dev python3 python3-pip ENV PATH="${PATH}:/root/.local/bin" -RUN apt-get update && apt-get install -y --no-install-recommends curl gcc git g++ libev-dev libyaml-dev tini && \ - python3 -m pip install pipx && \ - python3 -m pipx ensurepath && \ - pipx install poetry && \ +RUN apt-get update && \ + apt-get install -y --no-install-recommends curl gcc git g++ libev-dev libyaml-dev tini && \ + curl -sSL https://install.python-poetry.org | python3 - --version 1.4.2 && \ poetry config virtualenvs.create false && \ + python3 -m pip install --no-cache-dir --upgrade pip && \ poetry install --no-root && \ apt-get purge -y gcc g++ && apt -y autoremove --purge && rm -rf /var/cache/* /root/.cache/* COPY . /BirdsEye WORKDIR /BirdsEye EXPOSE 4999 +RUN python3 geolocate.py --help ENTRYPOINT ["python3", "geolocate.py"] CMD ["geolocate.ini"] diff --git a/geolocate.ini b/geolocate.ini index 7de2613f..fc30216e 100644 --- a/geolocate.ini +++ b/geolocate.ini @@ -38,7 +38,7 @@ experiment_name = repp_dev #### # MQTT #### -#mqtt_host = 0.0.0.0 +mqtt_host = mqtt #mqtt_host = host.docker.internal mqtt_port = 1883