docker images

This commit is contained in:
allencai
2026-01-22 10:46:47 +08:00
parent b9d2e0e43a
commit c54eea076a
22 changed files with 468 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM openjdk:11
ENV BES_HOME="/bes"
RUN mkdir ${BES_HOME}
ADD BES-9.5.2.4703.tar.gz ${BES_HOME}/
COPY entrypoint.sh ${BES_HOME}/entrypoint.sh
RUN chmod +x ${BES_HOME}/entrypoint.sh
RUN echo "export JAVA_HOME=/usr/local/openjdk-11" >> /etc/profile
RUN echo "export PATH=$JAVA_HOME/bin:$PATH" >> /etc/profile
RUN echo "export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$CLASSPATH" >> /etc/profile
WORKDIR ${BES_HOME}
EXPOSE 1900
EXPOSE 8080
EXPOSE 8443
ENTRYPOINT ["sh","-c","${BES_HOME}/entrypoint.sh"]