oneapi-run-hf / Dockerfile
zhzabcd's picture
Create Dockerfile
25cfa42 verified
raw
history blame contribute delete
382 Bytes
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"]