-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-alpine
59 lines (53 loc) · 1.52 KB
/
Dockerfile-alpine
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM alpine:latest
ENV GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
WORKDIR /workdir
RUN apk add \
'argp-standalone' \
'asciidoc' \
'bash' \
'bc' \
'binutils' \
'bzip2' \
'cdrkit' \
'coreutils' \
'diffutils' \
'elfutils-dev' \
'findutils' \
'flex' \
'g++' \
'gawk' \
'gettext' \
'git' \
'grep' \
'gzip' \
'intltool' \
'libxslt' \
'linux-headers' \
'musl-fts-dev' \
'musl-libintl' \
'musl-obstack-dev' \
'ncurses-dev' \
'openssl-dev' \
'patch' \
'perl' \
'python3-dev' \
'rsync' \
'unzip' \
'util-linux' \
'zlib-dev' \
'curl' 'build-base' 'wget' 'gnupg' 'tar' 'perl-utils' 'clang16' \
'nano' 'expat' 'zsh' 'zsh-theme-powerlevel10k' 'cunit' 'autoconf' 'automake' 'libtool'
RUN curl -LO https://raw.githubusercontent.com/miyagawa/cpanminus/master/cpanm \
&& chmod +x cpanm \
&& ./cpanm App::cpanminus \
&& rm -fr ./cpanm /root/.cpanm
ENV PERL_CPANM_OPT --verbose --mirror https://cpan.metacpan.org --mirror-only
RUN cpanm Digest::SHA Module::Signature && rm -rf ~/.cpanm
ENV PERL_CPANM_OPT $PERL_CPANM_OPT --verify
RUN ln -s '/usr/lib/libncurses.so' '/usr/lib/libtinfo.so' && \
addgroup 'buildbot' && \
adduser -s '/bin/bash' -G 'buildbot' -D 'buildbot'
USER buildbot
RUN mkdir -p ~/.local/share/zsh/plugins && \
ln -s /usr/share/zsh/plugins/powerlevel10k ~/.local/share/zsh/plugins/ && \
echo "alias make='make -j$(nproc)' && alias cp='cp -i'" >> ~/.zshrc \