forked from aoldershaw/git-branches-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 661 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (26 loc) · 661 Bytes
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
ARG base_image=alpine:latest
FROM ${base_image} AS resource
RUN apk add --no-cache \
bash \
git \
jq \
python3 \
openssh-client-default \
openssh-client-common
WORKDIR /root
RUN apk add --no-cache \
--virtual build-dependencies \
make \
g++ \
openssl-dev && \
git clone https://github.com/proxytunnel/proxytunnel.git && \
cd proxytunnel && \
make -j4 && \
install -c proxytunnel /usr/bin/proxytunnel && \
cd .. && \
rm -rf proxytunnel && \
apk del build-dependencies
RUN git config --global user.email "git@localhost"
RUN git config --global user.name "git"
ADD assets/ /opt/resource/
RUN chmod +x /opt/resource/*