deploy/stratos-base-images/Dockerfile.stratos-ui-build-base.tmpl
FROM {{BASE_IMAGE}}
{{#IS_SLE}}
RUN rm -f /usr/lib/zypp/plugins/services/container-suseconnect-zypp
RUN zypper addrepo -G -c -p 90 '{{ZYP_REPO_BASE_GA}}' base_ga
RUN zypper addrepo -G -c -p 80 '{{ZYP_REPO_BASE_UPDATE}}' base_update
RUN zypper addrepo -G -c -p 70 '{{ZYP_REPO_SP_GA}}' sp_ga
RUN zypper addrepo -G -c -p 60 '{{ZYP_REPO_SP_UPDATE}}' sp_update
RUN zypper ref
{{/IS_SLE}}
RUN zypper -n ref && \
zypper -n up && \
zypper in -y wget tar git xz && \
zypper clean -a && \
rm -f /var/log/zypper.log /var/log/zypp/history
RUN cd / && wget https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz && \
tar -xf node-v12.13.0-linux-x64.tar.xz
ENV USER=stratos
ENV PATH=$PATH:/node-v12.13.0-linux-x64/bin
RUN useradd -ms /bin/bash stratos && \
mkdir -p /home/stratos && \
chown -R stratos /home/stratos && \
chgrp -R users /home/stratos && \
mkdir -p /usr/dist && \
chown stratos /usr/dist && \
chgrp users /usr/dist
{{#IS_SLE}}
RUN zypper rr base_ga
RUN zypper rr base_update
RUN zypper rr sp_ga
RUN zypper rr sp_update
{{/IS_SLE}}
USER stratos
WORKDIR /home/stratos