Neon-AI commited on
Commit
b0f7a2a
·
verified ·
1 Parent(s): 16d8c09

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -22,16 +22,16 @@ RUN curl -sSL https://github.com/git-lfs/git-lfs/releases/download/v3.4.0/git-lf
22
  # -----------------------------
23
  WORKDIR /app
24
 
25
- # Clean /app in case something exists
26
  RUN rm -rf /app/* || true
27
 
28
  # -----------------------------
29
- # Clone private repo and pull LFS in one secret-mounted layer
30
  # -----------------------------
31
  RUN --mount=type=secret,id=GH_TOKEN \
32
  git clone --depth=1 https://$(cat /run/secrets/GH_TOKEN)@github.com/IMaduwike/telebot-api.git . && \
33
- rm -rf .git && \
34
- git lfs pull
35
 
36
  # -----------------------------
37
  # Move binary and make executable
 
22
  # -----------------------------
23
  WORKDIR /app
24
 
25
+ # Clean /app in case anything exists
26
  RUN rm -rf /app/* || true
27
 
28
  # -----------------------------
29
+ # Clone private repo, pull LFS, remove .git
30
  # -----------------------------
31
  RUN --mount=type=secret,id=GH_TOKEN \
32
  git clone --depth=1 https://$(cat /run/secrets/GH_TOKEN)@github.com/IMaduwike/telebot-api.git . && \
33
+ git lfs pull && \
34
+ rm -rf .git
35
 
36
  # -----------------------------
37
  # Move binary and make executable