-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile.jammy
43 lines (38 loc) · 1.23 KB
/
Dockerfile.jammy
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
ARG arch
FROM ${arch}buildpack-deps:jammy-scm AS builder
RUN apt-get update -y && apt-get install apt-transport-https ca-certificates -y
RUN echo 'deb [trusted=yes] https://railsexpress.de/packages/ubuntu/jammy ./' >> /etc/apt/sources.list
ARG suffix
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y locales && \
locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8; \
apt-get install -y \
autoconf \
automake \
bison \
build-essential \
checkinstall \
gawk \
libcurl4-openssl-dev \
libicu-dev \
libssl-dev \
uuid-dev \
libtool \
logjam-go \
logjam-libs${suffix} \
pkg-config \
zlib1g-dev
# build context is the bin dir
ADD . /logjam-tools
WORKDIR /logjam-tools
ARG prefix
RUN sh autogen.sh --prefix=$prefix && make clean && make && make check && make install
FROM ${arch}ubuntu:jammy
ARG prefix
COPY --from=builder $prefix $prefix
LABEL maintainer "Stefan Kaes <[email protected]>"
RUN apt-get update && \
apt-get install -y libc6 zlib1g openssl libuuid1 libcurl4 && \
rm -rf /var/lib/apt/lists/*