X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FNG-UI%2FDockerfile;h=418de25bc8972be38e78de24be727738e29590be;hb=b17abf76811b74f98bd5852d6ce4010a4acb680a;hp=6e9e79d0f9bc01fb48edb5ec03074f2cd26a3f89;hpb=b147d7129db4f7cae26a31230af184c958b20683;p=osm%2Fdevops.git diff --git a/docker/NG-UI/Dockerfile b/docker/NG-UI/Dockerfile index 6e9e79d0..418de25b 100644 --- a/docker/NG-UI/Dockerfile +++ b/docker/NG-UI/Dockerfile @@ -33,9 +33,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ xz-utils=5.2.* RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \ - echo "deb https://deb.nodesource.com/node_10.x focal main" | tee -a /etc/apt/sources.list.d/nodesource.list && \ + echo "deb https://deb.nodesource.com/node_14.x focal main" | tee -a /etc/apt/sources.list.d/nodesource.list && \ DEBIAN_FRONTEND=noninteractive apt-get update && \ - DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs=10.24.* + DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs ARG OSM_NGUI_URL @@ -62,17 +62,11 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ nginx=1.18.* && \ rm -rf /var/lib/apt/lists/* +RUN rm -f /etc/apt/apt.conf.d/proxy.conf + # Removing the Nginx default page. RUN rm -rf /usr/share/nginx/html/* -# Creating the user for the app -RUN groupadd -g 1000 appuser && \ - useradd -u 1000 -g 1000 -d /usr appuser && \ - chown -R appuser:appuser /usr /var/lib/nginx /var/log/nginx /etc/nginx /run - -# Changing the security context -USER appuser - # Copying Nginx configuration COPY --from=INSTALL /usr/share/osm-ngui/nginx/nginx.conf /etc/nginx/sites-available/default