X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fotf.git;a=blobdiff_plain;f=otf-frontend%2FDockerfile;fp=otf-frontend%2FDockerfile;h=df4dbfc08045d659edf1b7a2ac03b44271d43578;hp=de31829536cf1aadfaa99b7f62d59824a920458a;hb=321c6b595a3f05db9e4327c16af85c16752f9ec2;hpb=29cd8447ada8036b91ad2ca75a3c1c3fe0d8ba55 diff --git a/otf-frontend/Dockerfile b/otf-frontend/Dockerfile index de31829..df4dbfc 100644 --- a/otf-frontend/Dockerfile +++ b/otf-frontend/Dockerfile @@ -18,7 +18,7 @@ ENV ENV=development ENV NAMESPACE=namespace ENV APP_NAME=otf-frontend ENV APP_VERSION=1.0 -ENV OTF_URL=https://loaclhost:32524/ +ENV OTF_URL=https://localhost:32524/ ENV OTF_EMAIL=email@email.com ENV AUTHENTICATION_SECRET=/ytoYB+iD5HUuDLmeqStcoUPwqw= ENV SERVICEAPI_URL=https://localhost:32303/otf/api/ @@ -34,11 +34,22 @@ ENV MONGO_REPLICASET=rs0 ENV MONGO_USERNAME=username ENV MONGO_PASSWORD=password +RUN npm config set unsafe-perm true +RUN npm cache clean --force +RUN npm config set registry https://registry.npmjs.org/ +RUN node -v + COPY . /home/node WORKDIR /home/node RUN mkdir -p /otf/logs +#RUN npm install webpack +#RUN npm install webpack webpack-dev-server +RUN npm i -g webpack +RUN npm i -g webpack-dev-server +RUN npm i -g --unsafe-perm @angular/cli@6.2.9 +RUN npm install --save-dev @angular-devkit/build-angular RUN npm install --unsafe-perm RUN npm run-script build