File: Dockerfile

package info (click to toggle)
elinks 0.19.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,424 kB
  • sloc: ansic: 174,653; cpp: 31,967; sh: 7,841; python: 4,039; perl: 2,183; javascript: 1,794; pascal: 1,710; makefile: 1,006; yacc: 295; lisp: 125; awk: 79; ruby: 70
file content (124 lines) | stat: -rw-r--r-- 3,141 bytes parent folder | download
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#
# elinks docker development environment
#

# [*] base system

# get latest alpine
FROM alpine:edge

# prepare system
RUN apk update && apk add git meson gcc g++ cmake pkgconfig make patch wget coreutils
RUN cd /etc/apk && echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> repositories

# install
# [*] install libraries
RUN apk add \
 brotli-dev \
 brotli-static \
 bsd-compat-headers \
 bzip2-dev \
 bzip2-static \
 c-ares-dev \
 curl-dev \
 curl-static \
 expat-dev \
 expat-static \
 gettext-dev \
 gettext-static \
 libevent-dev \
 libevent-static \
 libidn2-dev \
 libidn2-static \
 libunistring-dev \
 libunistring-static \
 libwebp-dev \
 libwebp-static \
 libxml2-dev \
 libxml2-static \
 linux-headers \
 luajit-dev \
 make \
 musl-dev \
 ncurses-dev \
 ncurses-static \
 nghttp2-dev \
 nghttp2-static \
 nghttp3-dev \
 nghttp3-static \
 openssl-dev \
 openssl-libs-static \
 perl \
 quickjs-dev \
 sqlite-dev \
 sqlite-static \
 tre-dev \
 tre-static \
 upx \
 xz-dev \
 xz-static \
 zlib-dev \
 zlib-static \
 zstd-dev \
 zstd-static

## [*] netsurf libs
# get netsurf source
RUN cd /root; \
wget http://download.netsurf-browser.org/libs/releases/buildsystem-1.10.tar.gz; \
tar -xf buildsystem-1.10.tar.gz; \
make -C buildsystem-1.10 install PREFIX=/opt/elinks
##rm -rf buildsystem-1.10

#
RUN cd /root; \
export CFLAGS="-Wno-error"; \
wget http://download.netsurf-browser.org/libs/releases/libparserutils-0.2.5-src.tar.gz; \
tar -xf libparserutils-0.2.5-src.tar.gz; \
make -C libparserutils-0.2.5 install -j1 Q= PREFIX=/opt/elinks LIBDIR=lib COMPONENT_TYPE=lib-static
##rm -rf libparserutils-0.2.5

RUN cd /root; \
export CFLAGS="-Wno-error"; \
wget http://download.netsurf-browser.org/libs/releases/libwapcaplet-0.4.3-src.tar.gz; \
tar -xf libwapcaplet-0.4.3-src.tar.gz; \
make -C libwapcaplet-0.4.3 install -j1 Q= PREFIX=/opt/elinks LIBDIR=lib COMPONENT_TYPE=lib-static
##rm -rf libwapcaplet-0.4.3

RUN apk add gperf
RUN cd /root; \
export CFLAGS="-Wno-error"; \
wget http://download.netsurf-browser.org/libs/releases/libhubbub-0.3.8-src.tar.gz; \
tar -xf libhubbub-0.3.8-src.tar.gz; \
make -C libhubbub-0.3.8 install -j1 Q= PREFIX=/opt/elinks LIBDIR=lib COMPONENT_TYPE=lib-static
##rm -rf libhubbub-0.3.8

RUN apk add libpsl-dev libpsl-static
RUN cd /root; \
wget http://download.netsurf-browser.org/libs/releases/libcss-0.9.2-src.tar.gz; tar -xf libcss-0.9.2-src.tar.gz ; \
export CFLAGS="-Wno-error"; \
make -C libcss-0.9.2 install -j1 Q= PREFIX=/opt/elinks LIBDIR=lib COMPONENT_TYPE=lib-static
##rm -rf libcss-0.9.2

RUN cd /root; \
export CFLAGS="-Wno-error"; \
wget http://download.netsurf-browser.org/libs/releases/libdom-0.4.2-src.tar.gz; \
tar -xf libdom-0.4.2-src.tar.gz; \
make -C libdom-0.4.2 install -j1 Q= PREFIX=/opt/elinks LIBDIR=lib COMPONENT_TYPE=lib-static
##rm -rf libdom-0.4.2

## [*] elinks sources
# get elinks source
RUN cd /root; git clone https://github.com/rkd77/elinks

## [*] Compilation
#

ADD mes_static.sh /root/elinks/mes_static.sh
RUN cd /root/elinks; \
./mes_static.sh;

RUN apk add xxd
ADD mes_static_js.sh /root/elinks/mes_static_js.sh
RUN cd /root/elinks; \
./mes_static_js.sh;