Build webui from local source

Use local copy of source code to build webui,
instead of downloading the code from Github.
This commit is contained in:
Yarin Sergey 2022-11-07 10:39:06 +05:00 committed by Sukchan Lee
parent ddf09f270a
commit 4091484215
1 changed files with 1 additions and 9 deletions

View File

@ -2,15 +2,7 @@ FROM node:19
MAINTAINER Sukchan Lee <acetcom@gmail.com>
ARG PACKAGE=open5gs
ARG VERSION=2.5.5
RUN set -e; \
cd /usr/src; \
rm -rf ./$PACKAGE; \
curl -SLO "https://github.com/open5gs/$PACKAGE/archive/v$VERSION.tar.gz"; \
tar -xvf v$VERSION.tar.gz; \
mv ./$PACKAGE-$VERSION/ ./$PACKAGE;
COPY webui /usr/src/open5gs/webui
WORKDIR /usr/src/open5gs/webui
RUN npm clean-install && \