代码拉取完成,页面将自动刷新
# Build an image using JDK 17
FROM openjdk:17-oracle AS builder
# Set up a working directory
WORKDIR /app
# Copy the project file to the working directory
COPY . .
# Build the project
RUN ./mvnw clean package -DskipTests=true
# Use a smaller base image
FROM alpine
# Set the time zone and locale
ARG TZ="Asia/Shanghai"
ENV TZ ${TZ}
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LANGUAGE en_US:en
RUN set -ex \
&& apk add --no-cache bash tzdata unzip ca-certificates \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone
# Create a target directory
RUN mkdir -p /joylive
# Copy the zip file generated during the build phase and extract it
COPY --from=builder /app/joylive-package/target/*.zip /joylive/
RUN unzip /joylive/*.zip -d /joylive/ \
&& rm /joylive/*.zip
# Set up a working directory
WORKDIR /joylive
RUN mkdir /joylive/log
RUN mkdir /joylive/output
VOLUME ["/joylive/log", "/joylive/config"]
CMD ["true"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。