release.dockerfile 495 B

123456789101112131415161718192021
  1. FROM python:3.11.3-slim
  2. ARG VERSION
  3. LABEL maintainer="Zauberzeug GmbH <info@zauberzeug.com>"
  4. RUN python -m pip install nicegui==$VERSION itsdangerous isort docutils requests
  5. WORKDIR /app
  6. COPY main.py README.md prometheus.py ./
  7. COPY examples ./examples
  8. COPY website ./website
  9. RUN mkdir /resources
  10. COPY docker-entrypoint.sh /resources
  11. RUN chmod 777 /resources/docker-entrypoint.sh
  12. EXPOSE 8080
  13. ENV PYTHONUNBUFFERED True
  14. ENTRYPOINT ["/resources/docker-entrypoint.sh"]
  15. CMD ["python", "main.py"]