Skip to content

Commit

Permalink
Build zstd manually
Browse files Browse the repository at this point in the history
  • Loading branch information
DaxServer committed Jan 14, 2021
1 parent 34efad2 commit db9f60b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
# Build

FROM phusion/baseimage:bionic-1.0.0 AS build

RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y --no-install-recommends \
autoconf automake autopoint gettext texinfo gperf flex gcc git isc-dhcp-client \
libidn2-0 libc6 libpsl-dev libpcre3-dev pkg-config libzstd-dev libssl-dev zstd \
libgnutls28-dev liblua5.1-0 liblua5.1-0-dev make net-tools pciutils sudo \
python3 python3-pip python3-setuptools rsync software-properties-common wget curl
FROM debian:buster-20210111-slim AS build

RUN apt update
RUN apt upgrade -y
RUN apt install -y --no-install-recommends \
autoconf automake autopoint gettext texinfo gperf flex gcc git make net-tools \
libidn2-0 libc6 libpsl-dev libpcre3-dev pkg-config libssl-dev zlib1g-dev liblzma-dev liblz4-dev \
libgnutls28-dev liblua5.1-0 liblua5.1-0-dev pciutils sudo wget curl \
python3 python3-pip python3-setuptools rsync software-properties-common
#RUN apt-get install -y libc-ares-dev
#libmetalink libcares

WORKDIR /app
RUN git clone --depth 1 --recurse-submodules https://github.com/ArchiveTeam/wget-lua.git
RUN git clone --depth 1 https://github.com/facebook/zstd.git
WORKDIR /app/zstd
RUN make install

WORKDIR /app
RUN git clone --depth 1 --recurse-submodules https://github.com/ArchiveTeam/wget-lua.git
WORKDIR /app/wget-lua

RUN ./bootstrap
RUN ./configure --with-ssl=openssl
RUN make
Expand All @@ -28,13 +31,10 @@ FROM python:3.9.1-slim-buster

RUN apt update
RUN apt upgrade -y
RUN apt install -y git liblua5.1-0 rsync
RUN apt-get install -y luarocks
RUN apt install -y git liblua5.1-0 rsync luarocks

RUN pip3 install setuptools wheel
RUN pip3 install requests warcio
RUN pip3 install requests warcio zstandard
RUN pip3 install -e git+https://github.com/SrihariThalla/seesaw-kit.git@edbd09f9eb84d27dc6ac70834215034ebad8bf0f#egg=seesaw
RUN pip3 install zstandard

WORKDIR /app

Expand Down

0 comments on commit db9f60b

Please sign in to comment.