2022-12-01 10:58:47 -05:00
|
|
|
#
|
2022-12-01 14:35:48 -05:00
|
|
|
# elinks docker development environment
|
2022-12-01 10:58:47 -05:00
|
|
|
#
|
|
|
|
|
|
|
|
# [*] base system
|
|
|
|
|
|
|
|
# get latest alpine
|
|
|
|
FROM alpine:edge
|
|
|
|
|
|
|
|
# prepare system
|
2024-03-08 12:09:23 -05:00
|
|
|
RUN apk update && apk add git meson gcc g++ cmake pkgconfig make patch wget coreutils
|
2022-12-01 12:03:29 -05:00
|
|
|
RUN cd /etc/apk && echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> repositories
|
2022-12-01 10:58:47 -05:00
|
|
|
|
|
|
|
# install
|
|
|
|
# [*] install libraries
|
2022-12-07 13:26:18 -05:00
|
|
|
RUN apk add \
|
2022-12-01 10:58:47 -05:00
|
|
|
brotli-dev \
|
|
|
|
brotli-static \
|
|
|
|
bzip2-dev \
|
|
|
|
bzip2-static \
|
2023-07-25 10:23:27 -04:00
|
|
|
curl-dev \
|
|
|
|
curl-static \
|
2022-12-01 10:58:47 -05:00
|
|
|
expat-dev \
|
|
|
|
expat-static \
|
|
|
|
libevent-dev \
|
|
|
|
libevent-static \
|
2023-01-02 13:33:39 -05:00
|
|
|
libidn2-dev \
|
|
|
|
libidn2-static \
|
2022-12-01 10:58:47 -05:00
|
|
|
libxml2-dev \
|
2022-12-03 09:38:26 -05:00
|
|
|
libxml2-static \
|
2022-12-01 10:58:47 -05:00
|
|
|
linux-headers \
|
|
|
|
luajit-dev \
|
|
|
|
ncurses-dev \
|
|
|
|
ncurses-static \
|
2023-07-25 10:23:27 -04:00
|
|
|
openssl-dev \
|
|
|
|
openssl-libs-static \
|
|
|
|
perl \
|
2022-12-01 12:03:29 -05:00
|
|
|
quickjs-dev \
|
2022-12-01 10:58:47 -05:00
|
|
|
sqlite-dev \
|
|
|
|
sqlite-static \
|
2022-12-01 14:35:48 -05:00
|
|
|
tre-dev \
|
|
|
|
tre-static \
|
2023-01-02 13:33:39 -05:00
|
|
|
libunistring-dev \
|
|
|
|
libunistring-static \
|
2022-12-01 10:58:47 -05:00
|
|
|
zlib-dev \
|
|
|
|
zlib-static \
|
|
|
|
zstd-dev \
|
2023-07-25 10:23:27 -04:00
|
|
|
zstd-static \
|
2022-12-01 10:58:47 -05:00
|
|
|
xz-dev \
|
2023-07-25 10:23:27 -04:00
|
|
|
xz-static \
|
|
|
|
make \
|
2024-03-08 12:09:23 -05:00
|
|
|
musl-dev \
|
2023-07-25 10:23:27 -04:00
|
|
|
nghttp2-dev \
|
|
|
|
nghttp2-static \
|
|
|
|
c-ares-dev \
|
|
|
|
c-ares-static
|
2022-12-01 10:58:47 -05:00
|
|
|
|
2023-07-25 10:23:27 -04:00
|
|
|
## [*] netsurf libs
|
|
|
|
# get netsurf source
|
|
|
|
RUN cd /root; \
|
2024-03-08 12:09:23 -05:00
|
|
|
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=/usr/local
|
|
|
|
##rm -rf buildsystem-1.10
|
2022-12-01 12:03:29 -05:00
|
|
|
|
2023-07-25 10:23:27 -04:00
|
|
|
#
|
|
|
|
RUN cd /root; \
|
|
|
|
export CFLAGS="-Wno-error"; \
|
2024-03-08 12:09:23 -05:00
|
|
|
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=/usr/local LIBDIR=lib COMPONENT_TYPE=lib-static
|
|
|
|
##rm -rf libparserutils-0.2.5
|
2023-07-25 10:23:27 -04:00
|
|
|
|
|
|
|
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=/usr/local LIBDIR=lib COMPONENT_TYPE=lib-static
|
|
|
|
##rm -rf libwapcaplet-0.4.3
|
|
|
|
|
2024-03-08 12:09:23 -05:00
|
|
|
RUN apk add gperf
|
2023-07-25 10:23:27 -04:00
|
|
|
RUN cd /root; \
|
|
|
|
export CFLAGS="-Wno-error"; \
|
2024-03-08 12:09:23 -05:00
|
|
|
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=/usr/local LIBDIR=lib COMPONENT_TYPE=lib-static
|
|
|
|
##rm -rf libhubbub-0.3.8
|
2023-07-25 10:23:27 -04:00
|
|
|
|
2024-03-08 12:09:23 -05:00
|
|
|
RUN apk add libpsl-dev libpsl-static
|
2023-07-25 10:23:27 -04:00
|
|
|
RUN cd /root; \
|
2024-03-08 12:09:23 -05:00
|
|
|
wget http://download.netsurf-browser.org/libs/releases/libcss-0.9.2-src.tar.gz; tar -xf libcss-0.9.2-src.tar.gz ; \
|
2023-07-25 10:23:27 -04:00
|
|
|
export CFLAGS="-Wno-error"; \
|
2024-03-08 12:09:23 -05:00
|
|
|
make -C libcss-0.9.2 install -j1 Q= PREFIX=/usr/local LIBDIR=lib COMPONENT_TYPE=lib-static
|
|
|
|
##rm -rf libcss-0.9.2
|
2023-07-25 10:23:27 -04:00
|
|
|
|
|
|
|
RUN cd /root; \
|
|
|
|
export CFLAGS="-Wno-error"; \
|
2024-03-08 12:09:23 -05:00
|
|
|
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=/usr/local LIBDIR=lib COMPONENT_TYPE=lib-static
|
|
|
|
##rm -rf libdom-0.4.2
|
2022-12-01 12:03:29 -05:00
|
|
|
|
2022-12-01 10:58:47 -05:00
|
|
|
## [*] elinks sources
|
|
|
|
# get elinks source
|
|
|
|
RUN cd /root; git clone https://github.com/rkd77/elinks
|
|
|
|
|
|
|
|
## [*] Compilation
|
|
|
|
#
|
2023-07-25 10:23:27 -04:00
|
|
|
RUN apk add upx bsd-compat-headers
|
|
|
|
|
2022-12-01 10:58:47 -05:00
|
|
|
ADD mes_static.sh /root/elinks/mes_static.sh
|
|
|
|
RUN cd /root/elinks; \
|
|
|
|
./mes_static.sh;
|
2022-12-01 12:03:29 -05:00
|
|
|
|
2024-08-21 11:16:44 -04:00
|
|
|
RUN apk add xxd
|
2022-12-01 12:03:29 -05:00
|
|
|
ADD mes_static_js.sh /root/elinks/mes_static_js.sh
|
|
|
|
RUN cd /root/elinks; \
|
|
|
|
./mes_static_js.sh;
|