mirror of
https://github.com/tuya-cloudcutter/tuya-cloudcutter.git
synced 2026-03-25 13:46:54 +01:00
switch to buster based image enable pip caching in docker build add more verbose logging fixup hostapd configuration + better control of networkmanager when hostapd needs to take over.
18 lines
418 B
Docker
18 lines
418 B
Docker
FROM python:3.9-slim-buster AS base
|
|
|
|
RUN apt-get -qq update && apt-get install -qy --no-install-recommends git hostapd rfkill dnsmasq build-essential libssl-dev iproute2 mosquitto
|
|
|
|
FROM base AS python-deps
|
|
|
|
RUN pip install --upgrade pipenv
|
|
|
|
COPY src/Pipfile /src/
|
|
COPY src/Pipfile.lock /src/
|
|
RUN cd /src && PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy
|
|
|
|
FROM python-deps AS cloudcutter
|
|
|
|
COPY src /src
|
|
|
|
WORKDIR /src
|