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
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