Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Jan 24, 2023
1 parent 94bfcda commit 136863b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions backup-stats-collector/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
FROM ghcr.io/zhulik/fn-builder as builder

RUN wget -O- https://github.com/restic/restic/releases/download/v0.15.0/restic_0.15.0_linux_amd64.bz2 | bzip2 -d > /usr/bin/restic &&\
chmod +x /usr/bin/restic

COPY function/Gemfile function/Gemfile.lock ./
RUN bundle install

FROM ghcr.io/zhulik/fn-base

RUN wget -O- https://github.com/restic/restic/releases/download/v0.15.0/restic_0.15.0_linux_amd64.bz2 | bzip2 -d > /usr/bin/restic &&\
chmod +x /usr/bin/restic

COPY --from=builder /mnt/ .
COPY --from=builder /usr/bin/restic /usr/bin
COPY function .
USER app

0 comments on commit 136863b

Please sign in to comment.