-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (29 loc) · 863 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
35
FROM alpine:3
RUN apk add --no-cache \
binutils-gold \
g++ \
libstdc++ \
linux-headers \
cmake \
make \
curl \
jq \
grep \
file \
bash
WORKDIR /app
VOLUME ~/.cache
ADD https://raw.githubusercontent.com/whoan/snip/master/snip.sh ./snip.sh
RUN \
mkdir -p ~/.config/snip/ && \
echo 'source /app/snip.sh' >> ~/.bashrc && \
echo -e 'snip() {\n __snip "$@"\n}' >> ~/.bashrc && \
echo 'base_url=https://raw.githubusercontent.com/whoan/snippets/master/' > ~/.config/snip/settings.ini
ADD https://raw.githubusercontent.com/whoan/tst/master/tst.sh ./tst.sh
RUN \
mkdir -p ~/.config/tst/ && \
echo 'source /app/tst.sh' >> ~/.bashrc && \
echo 'base_url=https://api.github.com/repos/whoan/datasets/contents' > ~/.config/tst/settings.ini
COPY ./entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]