RuoYi-Cloud/ruoyi-modules/ruoyi-job/Dockerfile

20 lines
392 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

FROM java:8-jdk
#作者
MAINTAINER awg
#系统编码和时区
ENV LANG C.UTF-8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 复制jar文件到镜像内名字改为app.jar
ADD /target/*.jar app.jar
ENV JAVA_OPTS="-Xmx64M -Xms64M"
# 启动容器时的进程
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
# 暴露接口
EXPOSE 9203