1 Star 0 Fork 1.9K

rain78/unimall 小程序 + App + 公众号H5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
dobbinsoft 提交于 2021-12-15 14:17 . [dev] 配置图片尺寸
FROM centos:7
WORKDIR /home/dobbin
ENV RUN_ENV="prd"
RUN chmod 755 /home/dobbin/ -R
# nginx
RUN yum install epel-release -y && yum install nginx -y
COPY ./env/nginx.conf /etc/nginx/nginx.conf
COPY ./env/unimall.key /etc/nginx/ssl/unimall.key
COPY ./env/unimall.pem /etc/nginx/ssl/unimall.pem
COPY ./unimall-admin/dist /usr/share/nginx/html
RUN echo nginx >> /home/dobbin/start.sh
EXPOSE 443
EXPOSE 80
# jvm
RUN yum -y install java-1.8.0-openjdk.x86_64
COPY ./unimall-runner/target/unimall-runner-v3.jar unimall.jar
ENV JAVA_OPTS="\
-server \
-Xmx1024m \
-Xms1024m \
-Xmn512m \
-Xloggc:/home/dobbin/gc.log \
-XX:+IgnoreUnrecognizedVMOptions \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:+PrintGCDetails \
-XX:+PrintGCDateStamps \
-XX:GCLogFileSize=10M \
-XX:-UseBiasedLocking \
-XX:+UseTLAB \
-XX:+ResizeTLAB \
-XX:+PerfDisableSharedMem \
-XX:+UseCondCardMark \
-XX:CMSWaitDuration=10000 \
-XX:+UseParNewGC \
-XX:+UseConcMarkSweepGC \
-XX:+CMSParallelRemarkEnabled \
-XX:+CMSParallelInitialMarkEnabled \
-XX:+CMSEdenChunksRecordAlways \
-XX:CMSInitiatingOccupancyFraction=75 \
-XX:+UseCMSInitiatingOccupancyOnly \
-XX:+ExitOnOutOfMemoryError"
RUN echo "java \$JAVA_OPTS -Dspring.profiles.active=\${RUN_ENV} -jar unimall.jar" >> /home/dobbin/start.sh
RUN chmod +x /home/dobbin/start.sh
CMD ["sh", "-c", "/home/dobbin/start.sh" ]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/octopus-hits-crayon/unimall.git
git@gitee.com:octopus-hits-crayon/unimall.git
octopus-hits-crayon
unimall
unimall 小程序 + App + 公众号H5
master

搜索帮助