You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
741 B
17 lines
741 B
# 在 campus-server 目录先执行 mvn -Pportable clean verify。
|
|
# 从软件源安装 FFmpeg,构建不再依赖开发机的离线压缩包。
|
|
FROM eclipse-temurin:17-jre-jammy
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ffmpeg fontconfig fonts-dejavu-core \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& groupadd --system campus \
|
|
&& useradd --system --gid campus --home-dir /app campus
|
|
|
|
WORKDIR /app
|
|
COPY target/portable/campus-server-1.0.0.jar /app/app.jar
|
|
COPY src/main/resources/application.example.yml /app/config/application.example.yml
|
|
|
|
USER campus
|
|
EXPOSE 8009
|
|
ENTRYPOINT ["java", "-Duser.timezone=GMT+08", "-jar", "/app/app.jar", "--spring.config.location=file:/app/config/application.example.yml"]
|
|
|