forked from acouzens/open5gs
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:
parent
ba8a7ce1af
commit
935f50bb24
|
@ -12,7 +12,9 @@ services:
|
||||||
- ../docs/assets/webui/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
|
- ../docs/assets/webui/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
|
||||||
|
|
||||||
webui:
|
webui:
|
||||||
build: webui
|
build:
|
||||||
|
context: ../
|
||||||
|
dockerfile: docker/webui/Dockerfile
|
||||||
image: ${USER}/open5gs-webui
|
image: ${USER}/open5gs-webui
|
||||||
container_name: open5gs-webui
|
container_name: open5gs-webui
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
@ -2,15 +2,7 @@ FROM node:19
|
||||||
|
|
||||||
MAINTAINER Sukchan Lee <acetcom@gmail.com>
|
MAINTAINER Sukchan Lee <acetcom@gmail.com>
|
||||||
|
|
||||||
ARG PACKAGE=open5gs
|
COPY webui /usr/src/open5gs/webui
|
||||||
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;
|
|
||||||
|
|
||||||
WORKDIR /usr/src/open5gs/webui
|
WORKDIR /usr/src/open5gs/webui
|
||||||
RUN npm clean-install && \
|
RUN npm clean-install && \
|
||||||
|
|
Loading…
Reference in New Issue