File size: 382 Bytes
25cfa42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM justsong/one-api

# 设置时区
ENV TZ=Asia/Shanghai

# 挂载卷
VOLUME /data

# 暴露端口
EXPOSE 3000

# 启动命令
CMD ["docker-entrypoint.sh"]

# 容器名称
LABEL name="one-api"

# 重启策略
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
  CMD curl -f http://localhost:3000/ || exit 1

# 运行容器
ENTRYPOINT ["docker-entrypoint.sh"]