Files
ESP32-WijiBoard/deploy/Dockerfile
T
PROFERIS - Mi³osz Stocki 1fe1b9fd0b proper shutdown signalling
2026-07-07 15:14:46 +02:00

17 lines
342 B
Docker

FROM python:3-alpine
WORKDIR /app
# Copy only the necessary web assets
COPY index.html favicon.svg ./
COPY web/ ./web/
# Expose a random non-standard port
EXPOSE 8421
# Python's http.server gracefully exits on SIGINT (Ctrl+C) rather than SIGTERM
STOPSIGNAL SIGINT
# Run the python HTTP server
CMD ["python", "-m", "http.server", "8421"]