Skip to content

Commit

Permalink
Fix Nodejs 12 installation
Browse files Browse the repository at this point in the history
  • Loading branch information
vsaw committed Sep 19, 2023
1 parent 4e4498a commit 697d200
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions docker/build/nano/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y gnupg2 ca-certificates \
git build-essential libopencv-dev wget \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs

# Build Darknet
RUN git clone --depth 1 -b odc https://github.com/opendatacam/darknet /var/local/darknet
Expand Down Expand Up @@ -91,4 +89,10 @@ RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y libopencv-highgui4.2 \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean

COPY --from=builder /var/local/darknet /var/local/darknet
8 changes: 6 additions & 2 deletions docker/build/xavier/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y gnupg2 ca-certificates \
git build-essential libopencv-dev wget \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs

# Build Darknet
RUN git clone --depth 1 -b odc https://github.com/opendatacam/darknet /var/local/darknet
Expand Down Expand Up @@ -91,4 +89,10 @@ RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y libopencv-highgui4.2 \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean

COPY --from=builder /var/local/darknet /var/local/darknet

0 comments on commit 697d200

Please sign in to comment.