代码拉取完成,页面将自动刷新
同步操作将从 opensourceway/EaseSearch 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM openeuler/openeuler:22.03-lts-sp1 as BUILDER
RUN cd / \
&& yum install -y wget \
&& wget https://mirrors.tuna.tsinghua.edu.cn/Adoptium/17/jdk/x64/linux/OpenJDK17U-jdk_x64_linux_hotspot_17.0.11_9.tar.gz \
&& tar -zxvf OpenJDK17U-jdk_x64_linux_hotspot_17.0.11_9.tar.gz \
&& wget https://repo.huaweicloud.com/apache/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.tar.gz \
&& tar -zxvf apache-maven-3.8.1-bin.tar.gz
COPY . /EaseSearch-search
ENV JAVA_HOME=/jdk-17.0.11+9
ENV PATH=${JAVA_HOME}/bin:$PATH
ENV MAVEN_HOME=/apache-maven-3.8.1
ENV PATH=${MAVEN_HOME}/bin:$PATH
RUN cd /EaseSearch-search \
&& mvn clean install package -Dmaven.test.skip
FROM openeuler/openeuler:22.03-lts-sp1
RUN yum update -y \
&& yum install -y shadow passwd
RUN groupadd -g 1001 easysearch \
&& useradd -u 1001 -g easysearch -s /bin/bash -m easysearch
ENV WORKSPACE=/home/easysearch
WORKDIR ${WORKSPACE}
COPY --chown=easysearch --from=Builder /EaseSearch-search/target/EaseSearch-0.0.1-SNAPSHOT.jar ${WORKSPACE}/target/
RUN echo "umask 027" >> /home/easysearch/.bashrc \
&& source /home/easysearch/.bashrc \
&& chmod 550 -R /home/easysearch \
&& rm -rf /EaseSearch-search/* \
&& echo "set +o history" >> /etc/bashrc \
&& sed -i "s|HISTSIZE=1000|HISTSIZE=0|" /etc/profile \
&& sed -i "s|PASS_MAX_DAYS[ \t]*99999|PASS_MAX_DAYS 30|" /etc/login.defs
RUN passwd -l easysearch \
&& usermod -s /sbin/nologin sync \
&& usermod -s /sbin/nologin shutdown \
&& usermod -s /sbin/nologin halt \
&& usermod -s /sbin/nologin easysearch \
&& echo "export TMOUT=1800 readonly TMOUT" >> /etc/profile
RUN dnf install -y wget \
&& wget https://mirrors.tuna.tsinghua.edu.cn/Adoptium/17/jre/x64/linux/OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz \
&& tar -zxvf OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz \
&& rm -rf OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz
RUN rm -rf `find / -iname "*tcpdump*"` \
&& rm -rf `find / -iname "*sniffer*"` \
&& rm -rf `find / -iname "*wireshark*"` \
&& rm -rf `find / -iname "*Netcat*"` \
&& rm -rf `find / -iname "*gdb*"` \
&& rm -rf `find / -iname "*strace*"` \
&& rm -rf `find / -iname "*readelf*"` \
&& rm -rf `find / -iname "*cpp*"` \
&& rm -rf `find / -iname "*gcc*"` \
&& rm -rf `find / -iname "*dexdump*"` \
&& rm -rf `find / -iname "*mirror*"` \
&& rm -rf `find / -iname "*JDK*"` \
&& rm -rf /root/.m2/repository/*
RUN rm -rf /usr/bin/gdb* \
&& rm -rf /usr/share/gdb \
&& rm -rf /usr/share/gcc-10.3.1 \
&& yum remove gdb-gdbserver findutils passwd shadow -y \
&& yum clean all
ENV JAVA_HOME=${WORKSPACE}/jdk-17.0.11+9-jre
ENV PATH=${JAVA_HOME}/bin:$PATH
ENV LANG="C.UTF-8"
EXPOSE 8080
USER easysearch
CMD java -jar ${WORKSPACE}/target/EaseSearch-0.0.1-SNAPSHOT.jar --spring.config.location=${APPLICATION_PATH}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。