Spaces:
Running
Running
Update Dockerfile
Browse files- 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
|
| 26 |
RUN rm -rf /app/* || true
|
| 27 |
|
| 28 |
# -----------------------------
|
| 29 |
-
# Clone private repo
|
| 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 |
-
|
| 34 |
-
|
| 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
|