Spaces:
Sleeping

supermario2 commited on
Commit
cddee3f
·
verified ·
1 Parent(s): 0d9ae62

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -10
Dockerfile CHANGED
@@ -1,13 +1,4 @@
1
- # 第一阶段:设置认证
2
- FROM alpine as auth
3
- RUN --mount=type=secret,id=GITHUB_TOKEN,required=true \
4
- mkdir -p ~/.docker && \
5
- TOKEN=$(cat /run/secrets/GITHUB_TOKEN) && \
6
- echo "{\"auths\":{\"ghcr.io\":{\"auth\":\"$(echo -n "cloudeye2:$TOKEN" | base64)\"}}}" > ~/.docker/config.json
7
-
8
- # 第二阶段:使用认证拉取镜像
9
- FROM ghcr.io/cloudeye2/cooochat:latest
10
- COPY --from=auth ~/.docker/config.json ~/.docker/config.json
11
 
12
  ENV PORT=7860
13
  EXPOSE 7860
 
1
+ FROM docker.io/cloudeye2/cooochat:latest
 
 
 
 
 
 
 
 
 
2
 
3
  ENV PORT=7860
4
  EXPOSE 7860