-
Notifications
You must be signed in to change notification settings - Fork 43
/
Dockerfile.ArchLinux
33 lines (30 loc) · 1.01 KB
/
Dockerfile.ArchLinux
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
# Build Arch Linux Package in Docker
#
# Needs docker 17.05!
# https://docs.docker.com/engine/userguide/eng-image/multistage-build/#use-multi-stage-builds
#
# Build with "./build.sh docker_arch [‹build-opts›…]"
#
ARG DISTRO=archlinux
ARG CODENAME=20200205
#ARG CODENAME=latest
FROM ${DISTRO}:${CODENAME} AS build
WORKDIR /build
RUN pacman -Syy --noconfirm && pacman -S --noconfirm --needed \
lsb-release base-devel pkg-config \
subversion git time tmux curl wget \
autoconf automake libtool cppunit \
openssl ncurses readline zlib
COPY patches/ ./patches
COPY build.sh tmp-docker/ ./
RUN ./build.sh install
FROM ${DISTRO}:${CODENAME} AS package
ENV DEBFULLNAME=pyroscope
ENV DEBEMAIL=pyroscope.project@gmail.com
WORKDIR /package
RUN pacman -Syy --noconfirm && pacman -S --noconfirm --needed \
lsb-release base-devel pkg-config ruby
RUN gem install --no-user-install fpm -v 1.11.0
COPY --from=build /opt/rtorrent /opt/rtorrent/
COPY build.sh tmp-docker/ ./
RUN ./build.sh pkg2pacman