64 lines
2.7 KiB
Docker
64 lines
2.7 KiB
Docker
|
FROM adoptopenjdk/openjdk11:latest
|
||
|
|
||
|
LABEL Author="axzsd" \
|
||
|
Email="atva725@qq.com" \
|
||
|
Description="cmx活动"
|
||
|
|
||
|
ENV SPRING_PROFILES_ACTIVE="dev"
|
||
|
ENV JAVA_OPTIONS "-Xms256m -Xmx530m \
|
||
|
-Dfile.encoding=UTF-8 \
|
||
|
-Djava.awt.headless=true \
|
||
|
-Dsun.net.client.defaultConnectTimeout=10000 \
|
||
|
-Dsun.net.client.defaultReadTimeout=30000"
|
||
|
|
||
|
#RUN apt-get update && apt-get install bash --only-upgrade \
|
||
|
# && apt-get install libaprutil1 --only-upgrade \
|
||
|
# && apt-get install coreutils --only-upgrade \
|
||
|
# && apt-get install libgcc1 --only-upgrade \
|
||
|
# && apt-get install gcc-6-base --only-upgrade \
|
||
|
# && apt-get install libstdc++6 --only-upgrade \
|
||
|
# && apt-get install multiarch-support --only-upgrade \
|
||
|
# && apt-get install libc6 --only-upgrade \
|
||
|
# && apt-get install libc-bin --only-upgrade \
|
||
|
# && apt-get install libpng16-16 --only-upgrade \
|
||
|
# && apt-get install unzip --only-upgrade \
|
||
|
# && apt-get install mount --only-upgrade \
|
||
|
# && apt-get install libsmartcols1 --only-upgrade \
|
||
|
# && apt-get install libblkid1 --only-upgrade \
|
||
|
# && apt-get install libfdisk1 --only-upgrade \
|
||
|
# && apt-get install libmount1 --only-upgrade \
|
||
|
# && apt-get install bsdutils --only-upgrade \
|
||
|
# && apt-get install libuuid1 --only-upgrade \
|
||
|
# && apt-get install util-linux --only-upgrade \
|
||
|
# && apt-get install gnupg-agent --only-upgrade \
|
||
|
# && apt-get install gpgv --only-upgrade \
|
||
|
# && apt-get install dirmngr --only-upgrade \
|
||
|
# && apt-get install gnupg --only-upgrade \
|
||
|
# && apt-get install libtasn1-6 --only-upgrade \
|
||
|
# && apt-get install ncurses-bin --only-upgrade \
|
||
|
# && apt-get install libncursesw5 --only-upgrade \
|
||
|
# && apt-get install ncurses-base --only-upgrade \
|
||
|
# && apt-get install libtinfo5 --only-upgrade \
|
||
|
# && apt-get install bash --only-upgrade \
|
||
|
# && apt-get install wget --only-upgrade \
|
||
|
# && apt-get install libsepol1 --only-upgrade \
|
||
|
# && apt-get install perl-base --only-upgrade \
|
||
|
# && apt-get install libpcre3 --only-upgrade \
|
||
|
# && apt-get install git --only-upgrade \
|
||
|
# && apt-get install git-man --only-upgrade \
|
||
|
# && apt-get install libncurses5 --only-upgrade \
|
||
|
# && apt-get install openssh-client --only-upgrade \
|
||
|
# && apt-get install libperl5.24 --only-upgrade \
|
||
|
# && apt-get install perl --only-upgrade \
|
||
|
# && apt-get install perl-modules-5.24 --only-upgrade \
|
||
|
# && apt-get install python --only-upgrade \
|
||
|
# && apt-get install python-minimal --only-upgrade \
|
||
|
# && apt-get install libpython-stdlib --only-upgrade \
|
||
|
# && apt clean
|
||
|
|
||
|
WORKDIR /opt
|
||
|
COPY hound-server/target/hound-server.jar /opt/app.jar
|
||
|
|
||
|
EXPOSE 3001
|
||
|
ENTRYPOINT exec java $JAVA_OPTIONS -jar -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} /opt/app.jar
|