From 0008f311e986950962d232f6859a9119b5e47af3 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Mon, 14 Nov 2022 19:55:13 -0300 Subject: [PATCH] Better name stages --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 43e455af2..14cdbce4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ RUN pip3 install -r requirements.txt COPY requirements-wheels.txt /requirements-wheels.txt RUN pip3 wheel --wheel-dir=/wheels -r requirements-wheels.txt -# Frigate without web +# Frigate deps (ffmpeg, python, nginx, go2rtc, s6-overlay, etc) FROM debian:11-slim AS deps ARG TARGETARCH @@ -142,7 +142,7 @@ RUN S6_ARCH="${TARGETARCH}" \ && chmod +x /tmp/s6-overlay-installer && /tmp/s6-overlay-installer / -# Frigate with Node.js and NPM +# Frigate deps with Node.js and NPM FROM deps AS deps-node # Install Node 16 @@ -162,7 +162,7 @@ RUN --mount=type=bind,source=./requirements-dev.txt,target=/workspace/frigate/re CMD ["sleep", "infinity"] -# Build of the Frigate web +# Frigate web build FROM deps-node AS web-build WORKDIR /work @@ -172,13 +172,13 @@ RUN npm install COPY web/ ./ RUN npm run build -# Web dist files +# Frigate web dist files FROM scratch AS web-dist COPY --from=web-build /work/dist/ / -# Frigate container +# Frigate final container FROM deps WORKDIR /opt/frigate/