Skip to content

Commit

Permalink
fix: Image is missing rclone
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Aug 1, 2024
1 parent 8d45300 commit e67fa84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
FROM python:3.12-slim-bookworm as builder
RUN pip install --upgrade poetry poetry-plugin-export
RUN apt-get update && apt-get install -y make wget unzip
ADD poetry.lock /app/
ADD pyproject.toml /app/
ADD Makefile /app
RUN mkdir /app/bin

WORKDIR "/app"
RUN poetry export > /app/requirements.txt
RUN make bin/rclone


# ============
# Target image
# ============
FROM python:3.12-slim-bookworm

ENV RBACKUP_PATH=/app/rbackup

COPY --from=builder /app/requirements.txt /app/requirements.txt
COPY --from=builder /app/bin/rclone /usr/bin/rclone
RUN pip install -r /app/requirements.txt

ADD rbackup /app/rbackup
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ bin/rclone:
wget https://downloads.rclone.org/v1.67.0/rclone-v1.67.0-linux-amd64.zip -O /tmp/rclone/rclone.zip
cd /tmp/rclone && unzip rclone.zip
mv /tmp/rclone/*/rclone ./bin/rclone
chmod + ./bin/rclone

0 comments on commit e67fa84

Please sign in to comment.