-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (26 loc) · 942 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM alpine:3.13@sha256:d0710affa17fad5f466a70159cc458227bd25d4afb39514ef662ead3e6c99515 AS builder
ENV GIT_CRYPT_VERSION 0.7.0
ENV GIT_CRYPT_CHECKSUM 2210a89588169ae9a54988c7fdd9717333f0c6053ff704d335631a387bd3bcff
RUN apk --update --no-cache add \
curl \
g++ \
make \
openssl-dev
RUN curl -fSsL https://github.com/AGWA/git-crypt/archive/$GIT_CRYPT_VERSION.tar.gz \
-o git-crypt.tar.gz \
&& echo "$GIT_CRYPT_CHECKSUM git-crypt.tar.gz" | sha256sum -c - \
&& tar xzf git-crypt.tar.gz \
&& cd git-crypt-$GIT_CRYPT_VERSION \
&& make \
&& make install PREFIX=/usr
FROM alpine:3.13@sha256:d0710affa17fad5f466a70159cc458227bd25d4afb39514ef662ead3e6c99515
RUN apk --update --no-cache add \
git \
gnupg \
libgcc \
libstdc++ \
openssh-client
COPY --from=builder /usr/bin/git-crypt /usr/bin/git-crypt
COPY entrypoint.sh /entrypoint.sh
WORKDIR /repo
ENTRYPOINT ["/entrypoint.sh"]