Neon-AI commited on
Commit
80c797c
·
verified ·
1 Parent(s): d4db7c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -15,8 +15,11 @@ RUN curl -sSL https://github.com/git-lfs/git-lfs/releases/download/v3.4.0/git-lf
15
  WORKDIR /app
16
 
17
  # Clone private repo (secret GH_TOKEN)
 
 
18
  RUN --mount=type=secret,id=GH_TOKEN \
19
- git clone https://$(cat /run/secrets/GH_TOKEN)@github.com/IMaduwike/telebot-api.git .
 
20
 
21
  # Pull Git LFS binary
22
  RUN git lfs pull
 
15
  WORKDIR /app
16
 
17
  # Clone private repo (secret GH_TOKEN)
18
+ RUN rm -rf /app/* || true
19
+
20
  RUN --mount=type=secret,id=GH_TOKEN \
21
+ git clone --depth=1 https://$(cat /run/secrets/GH_TOKEN)@github.com/IMaduwike/telebot-api.git . && \
22
+ rm -rf .git
23
 
24
  # Pull Git LFS binary
25
  RUN git lfs pull