Skip to content

Commit

Permalink
Attempty to fix permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Dec 18, 2022
1 parent 1e37662 commit e013a64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ RUN apk add --no-cache alpine-sdk &&\

FROM base

RUN apk add --no-cache postgresql15-client restic
RUN apk add --no-cache postgresql15-client restic libcap
ENV ECTD_VERSION v3.5.6

RUN wget -qO- https://github.com/etcd-io/etcd/releases/download/${ECTD_VERSION}/etcd-${ECTD_VERSION}-linux-amd64.tar.gz | tar -xvz &&\
mv etcd-${ECTD_VERSION}-linux-amd64/etcdctl /bin &&\
rm -rf etcd-${ECTD_VERSION}-linux-amd64
rm -rf etcd-${ECTD_VERSION}-linux-amd64 &&\
setcap cap_dac_read_search=+ep /bin/etcdctl

COPY --from=builder /workdir/Gemfile.lock .
COPY --from=builder /workdir/vendor/ ./vendor/

0 comments on commit e013a64

Please sign in to comment.