mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Fix nodejs installation
This commit is contained in:
parent
385c036779
commit
5de9ba8368
12
Dockerfile
12
Dockerfile
@ -94,7 +94,7 @@ RUN --mount=type=bind,from=wheels,source=/wheels,target=/wheels \
|
|||||||
fi \
|
fi \
|
||||||
# arch specific packages
|
# arch specific packages
|
||||||
&& if [ "${TARGETARCH}" = "amd64" ]; then \
|
&& if [ "${TARGETARCH}" = "amd64" ]; then \
|
||||||
echo 'deb http://deb.debian.org/debian testing main non-free' >> /etc/apt/sources.list.d/deb.list \
|
echo 'deb http://deb.debian.org/debian testing main non-free' > /etc/apt/sources.list.d/debian-testing.list \
|
||||||
&& apt-get -qq update \
|
&& apt-get -qq update \
|
||||||
&& apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
&& apt-get -qq install --no-install-recommends --no-install-suggests -y \
|
||||||
mesa-va-drivers libva-drm2 intel-media-va-driver-non-free i965-va-driver libmfx1; \
|
mesa-va-drivers libva-drm2 intel-media-va-driver-non-free i965-va-driver libmfx1; \
|
||||||
@ -154,10 +154,14 @@ ENTRYPOINT ["/init"]
|
|||||||
FROM deps AS deps-node
|
FROM deps AS deps-node
|
||||||
|
|
||||||
# Install Node 16
|
# Install Node 16
|
||||||
RUN wget -qO- https://deb.nodesource.com/setup_16.x | bash - \
|
RUN \
|
||||||
|
# debian testing repo provides its own nodejs package, so we remove it first \
|
||||||
|
mv -f /etc/apt/sources.list.d/debian-testing.list /tmp/debian-testing.list\
|
||||||
|
&& wget -qO- https://deb.nodesource.com/setup_16.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
&& npm install -g npm@9
|
&& npm install -g npm@9 \
|
||||||
|
# then we restore the debian testing repo \
|
||||||
|
&& mv -f /tmp/debian-testing.list /etc/apt/sources.list.d/debian-testing.list
|
||||||
|
|
||||||
# Devcontainer
|
# Devcontainer
|
||||||
FROM deps-node AS devcontainer
|
FROM deps-node AS devcontainer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user