forked from itning/yunshu-nas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (12 loc) · 832 Bytes
/
Dockerfile
File metadata and controls
16 lines (12 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM openjdk:21
LABEL org.opencontainers.image.documentation="https://github.com/itning/yunshu-nas/blob/master/README.md"
LABEL org.opencontainers.image.authors="itning@itning.top"
LABEL org.opencontainers.image.source="https://github.com/itning/yunshu-nas"
LABEL org.opencontainers.image.title="云舒NAS"
LABEL org.opencontainers.image.description="自建NAS系统,实现本地视频音频点播,文件存储等功能。自动视频转码,在线观看下载视频!"
LABEL org.opencontainers.image.licenses="Apache License 2.0"
ADD nas-deploy/target/yunshu-nas-*.RELEASE.jar /usr/local/yunshu-nas.jar
# 端口暴露
EXPOSE 8888
HEALTHCHECK --interval=30s --timeout=3s --retries=3 --start-period=5s CMD curl --fail --silent localhost:8888/health | grep UP || exit 1
ENTRYPOINT ["java","-jar","/usr/local/yunshu-nas.jar"]