Dockerfile 454 B

12345678910111213141516
  1. FROM python:3.10.16-slim-bookworm
  2. RUN apt-get update \
  3. && apt-get install -y --no-install-recommends git gosu
  4. RUN groupadd -g 999 ardupilot && \
  5. useradd -u 999 -g 999 -m ardupilot --shell /bin/false && \
  6. mkdir /app && \
  7. chown ardupilot:ardupilot /app
  8. COPY --chown=ardupilot:ardupilot . /app
  9. WORKDIR /app/web
  10. RUN pip install --no-cache-dir -r requirements.txt
  11. ENTRYPOINT ["./docker-entrypoint.sh"]
  12. CMD ["gunicorn", "wsgi:application"]