mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Better name stages
This commit is contained in:
parent
3a3f19efad
commit
0008f311e9
10
Dockerfile
10
Dockerfile
@ -44,7 +44,7 @@ RUN pip3 install -r requirements.txt
|
|||||||
COPY requirements-wheels.txt /requirements-wheels.txt
|
COPY requirements-wheels.txt /requirements-wheels.txt
|
||||||
RUN pip3 wheel --wheel-dir=/wheels -r 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
|
FROM debian:11-slim AS deps
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ RUN S6_ARCH="${TARGETARCH}" \
|
|||||||
&& chmod +x /tmp/s6-overlay-installer && /tmp/s6-overlay-installer /
|
&& 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
|
FROM deps AS deps-node
|
||||||
|
|
||||||
# Install Node 16
|
# Install Node 16
|
||||||
@ -162,7 +162,7 @@ RUN --mount=type=bind,source=./requirements-dev.txt,target=/workspace/frigate/re
|
|||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
||||||
|
|
||||||
|
|
||||||
# Build of the Frigate web
|
# Frigate web build
|
||||||
FROM deps-node AS web-build
|
FROM deps-node AS web-build
|
||||||
|
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
@ -172,13 +172,13 @@ RUN npm install
|
|||||||
COPY web/ ./
|
COPY web/ ./
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Web dist files
|
# Frigate web dist files
|
||||||
FROM scratch AS web-dist
|
FROM scratch AS web-dist
|
||||||
|
|
||||||
COPY --from=web-build /work/dist/ /
|
COPY --from=web-build /work/dist/ /
|
||||||
|
|
||||||
|
|
||||||
# Frigate container
|
# Frigate final container
|
||||||
FROM deps
|
FROM deps
|
||||||
|
|
||||||
WORKDIR /opt/frigate/
|
WORKDIR /opt/frigate/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user