Skip to content

Commit 883ad50

Browse files
author
William Yang
committed
feat: 设置 BOOTCS_CHECKS_PATH 环境变量
用户不再需要 --local 参数,直接运行: docker run ... check cs50/credit
1 parent e3414d6 commit 883ad50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ RUN cd /tmp \
2525
# 复制检查脚本
2626
COPY checks/ /checks/
2727

28+
# 设置检查脚本路径环境变量(这样就不需要 --local 参数)
29+
ENV BOOTCS_CHECKS_PATH=/checks
30+
2831
# 工作目录
2932
WORKDIR /workspace
3033

0 commit comments

Comments
 (0)