RuoYi-Cloud/ruoyi-auth/Dockerfile

23 lines
497 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
# 默认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