mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-03 20:38:52 +08:00
27 lines
513 B
Docker
27 lines
513 B
Docker
FROM maven:3.6-jdk-8-alpine
|
|
LABEL maintainer="keepbx <service@keepbx.cn>"
|
|
|
|
WORKDIR /opt/Jpom
|
|
|
|
ADD . /tmp
|
|
|
|
ENV TZ=Asia/Beijin
|
|
|
|
# 验证码图片渲染需要ttf的支持
|
|
RUN apk add --update ttf-dejavu
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
|
echo ${TZ} > /etc/timezone
|
|
|
|
RUN cd /tmp && \
|
|
mvn package && \
|
|
mv starter/target/jpom-2.3.2-release/* /opt/Jpom/ && \
|
|
chmod +x /opt/Jpom/Jpom.sh && \
|
|
rm -rf /tmp && \
|
|
rm -rf ~/.m2
|
|
|
|
EXPOSE 2122
|
|
|
|
CMD ["/opt/Jpom/Jpom.sh", "start"]
|
|
|