forked from Github/frigate
Add webonly build and push options to Makefile
Change container repo to private Gitea Add webonly build Dockerfile Add .node-version for fnm Do not route settings, config, or logs to non admin users Do not show settings, system logs, system restart or config editor links to non admin users Add list of admin usernames to user.ts
This commit is contained in:
19
docker/webonly/Dockerfile
Normal file
19
docker/webonly/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
# syntax=docker/dockerfile:1.6
|
||||
|
||||
# Frigate web build
|
||||
# This should be architecture agnostic, so speed up the build on multiarch by not using QEMU.
|
||||
FROM --platform=$BUILDPLATFORM node:20 AS web-build
|
||||
|
||||
WORKDIR /work
|
||||
COPY web/package.json web/package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY web/ ./
|
||||
RUN npm run build \
|
||||
&& mv dist/BASE_PATH/monacoeditorwork/* dist/assets/ \
|
||||
&& rm -rf dist/BASE_PATH
|
||||
|
||||
FROM --platform=$BUILDPLATFORM ghcr.io/blakeblackshear/frigate:stable AS frigate
|
||||
WORKDIR /opt/frigate/
|
||||
RUN rm -rf web/ && mkdir web
|
||||
COPY --from=web-build /work/dist/ web/
|
||||
Reference in New Issue
Block a user