mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-08-26 11:32:02 +00:00
1d243b8f1b
审查发现: - EXPOSE 6400 误导用户映射后端端口,实际只需 6401(反向代理) - TZ 环境变量不如 JVM -Duser.timezone 可靠
23 lines
583 B
Docker
23 lines
583 B
Docker
FROM eclipse-temurin:17-jre
|
|
|
|
WORKDIR /app
|
|
|
|
# 安装 unzip
|
|
RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY ./web-service/target/netdisk-fast-download-bin.zip .
|
|
|
|
RUN unzip netdisk-fast-download-bin.zip && \
|
|
mv netdisk-fast-download/* ./ && \
|
|
rm netdisk-fast-download-bin.zip && \
|
|
chmod +x run.sh && \
|
|
mkdir -p db logs
|
|
|
|
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
|
|
RUN chmod +x /docker-entrypoint.sh
|
|
|
|
EXPOSE 6401
|
|
|
|
RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|