Files
9dbbfb7812 upgrade springboot 3.0 and java 17 (#1620)
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
Co-authored-by: songyinyin <song_yinyin@163.com>
2024-03-06 20:04:25 +08:00

25 lines
540 B
Docker

FROM openjdk:17-slim-buster
# add args version
ARG VERSION
MAINTAINER tancloud "tomsun28@outlook.com"
# Install SSH And Locales
RUN apt-get update && apt-get install -y openssh-server && apt-get install -y locales
RUN mkdir /var/run/sshd
# Build zh_CN en_US locale resource package
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8
ADD hertzbeat-${VERSION}.tar /opt/
ENV TZ=Asia/Shanghai
ENV LANG=en_US.UTF-8
EXPOSE 1157 1158 22
WORKDIR /opt/hertzbeat/
ENTRYPOINT ["./bin/entrypoint.sh"]