Skip to content

Commit

Permalink
Sdrangelcli: upgrade to Node 22 to build latest verison of sdrangelcl…
Browse files Browse the repository at this point in the history
…i. Syntax updates. Fixeds #54
  • Loading branch information
f4exb committed Nov 23, 2024
1 parent 6caaf12 commit faee741
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sdrangelcli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM node:16-slim as base
FROM node:22-slim AS base

# Install base packages
RUN apt-get update && apt-get -y install sudo git
RUN apt-get update \
&& apt-get -y install sudo git \
&& apt-get clean
RUN npm install -g @angular/cli \
&& npm install -g http-server

Expand All @@ -16,7 +18,7 @@ RUN sudo mkdir /opt/build \
WORKDIR /opt/build

# Clone sdrangelcli and build final image
FROM base as sdrangelcli
FROM base AS sdrangelcli
ARG branch
ARG clone_label
RUN git clone https://github.com/f4exb/sdrangelcli.git -b ${branch} sdrangelcli \
Expand All @@ -25,7 +27,7 @@ WORKDIR /opt/build/sdrangelcli
RUN npm install \
&& ng build --configuration production \
&& mv dist /opt/build \
&& rm -rf *
&& rm -rf ./*

WORKDIR /opt/build/dist/sdrangelcli
ENTRYPOINT [ "http-server" ]

0 comments on commit faee741

Please sign in to comment.