Sfoglia il codice sorgente

web: add Dockerfile

Shiv Tyagi 1 anno fa
parent
commit
fcb2877363
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. 16 0
      web/Dockerfile

+ 16 - 0
web/Dockerfile

@@ -0,0 +1,16 @@
+FROM python:3.10.16-slim-bookworm
+
+RUN apt-get update \
+    && apt-get install -y --no-install-recommends git gosu
+
+RUN groupadd -g 999 ardupilot && \
+    useradd -u 999 -g 999 -m ardupilot --shell /bin/false && \
+    mkdir /app && \
+    chown ardupilot:ardupilot /app
+
+COPY --chown=ardupilot:ardupilot . /app
+WORKDIR /app/web
+RUN pip install --no-cache-dir -r requirements.txt
+
+ENTRYPOINT ["./docker-entrypoint.sh"]
+CMD ["/bin/sh", "./start.sh"]