# HAB Relay image: the small server that lets families reach their HAB away from home (no Tailscale), end to end.
# Build from the HAB folder:  docker build -f cloud/relay/Dockerfile -t hab-relay .
FROM python:3.12-slim
WORKDIR /app
RUN pip install --no-cache-dir "acme==5.8.0" "josepy==2.2.0" "cryptography==50.0.2" "pyOpenSSL==26.4.0"
COPY relay_server.py relay_acme.py licence.py /app/
ENV PYTHONUNBUFFERED=1 HAB_RELAY_STATE=/state PORT=443
VOLUME /state
EXPOSE 443
CMD ["python", "relay_server.py"]
