RuoYi-Cloud/ruoyi-auth/Dockerfile

23 lines
497 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
# 默认dev环境
ENV PROFILES_ACTIVE = dev
# JVM运行参数
ENV JAVA_OPTS="-Xmx32M -Xms32M"
# 启动容器时的进程
ENTRYPOINT java ${JAVA_OPTS} -Dspring.profiles.active=${PROFILES_ACTIVE} -jar /app.jar
# 暴露接口
EXPOSE 9200