-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
52 lines (45 loc) · 1.4 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:trusty-20170119
# Required system packages
RUN apt-get update \
&& apt-get install -y \
wget \
unzip \
build-essential \
libreadline6-dev \
ruby-dev \
libncurses5-dev \
perl \
libpcre3-dev \
libssl-dev \
&& gem install fpm
RUN mkdir -p /build/root
WORKDIR /build
ARG DEB_VERSION
ARG DEB_PACKAGE
# Download packages
RUN wget -O zstd-$DEB_VERSION.tar.gz https://github.com/facebook/zstd/archive/v$DEB_VERSION.tar.gz \
&& tar xfz zstd-$DEB_VERSION.tar.gz
# Compile and install
RUN cd /build/zstd-$DEB_VERSION \
&& make install DESTDIR=/build/root
# Build deb
RUN fpm -s dir -t deb \
-n libzstd0 \
-v $DEB_VERSION-$DEB_PACKAGE \
-C /build/root \
-p libzstd0_VERSION_ARCH.deb \
--description 'a high performance web server and a reverse proxy server' \
--maintainer 'Phillipp Röll <[email protected]>' \
--deb-build-depends build-essential \
usr/local/lib usr/local/include
# Build deb
RUN fpm -s dir -t deb \
-n zstd \
-v $DEB_VERSION-$DEB_PACKAGE \
-C /build/root \
-p zstd_VERSION_ARCH.deb \
--depends "libzstd0 = $DEB_VERSION-$DEB_PACKAGE" \
--description 'a high performance web server and a reverse proxy server' \
--maintainer 'Phillipp Röll <[email protected]>' \
--deb-build-depends build-essential \
usr/local/bin usr/local/share