diff --git a/Dockerfile b/Dockerfile index f8bc422..eef56c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,11 @@ FROM python:3.12-slim RUN apt-get update RUN apt-get install -y git +COPY bluesky_crossposter_latest.txt bluesky_crossposter_latest.txt RUN git clone https://github.com/Linus2punkt0/bluesky-crossposter.git \ && cd bluesky-crossposter \ - && git checkout main \ - && git pull origin main + && git checkout $(cat bluesky_crossposter_latest.txt) \ + && git reset --hard # RUN git clone https://github.com/coissac/bluesky-crossposter.git RUN rm -f bluesky-crossposter/Dockerfile \ bluesky-crossposter/docker-compose.yml \