22 lines
537 B
Docker
22 lines
537 B
Docker
ARG BASE_IMAGE
|
|
|
|
FROM ${BASE_IMAGE} as base
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV GIT_REPO 1
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates build-essential git g++ debhelper automake fakeroot libtool lsb-release
|
|
|
|
WORKDIR /mergerfs
|
|
|
|
FROM base as builder
|
|
|
|
COPY mergerfs/tools/install-build-pkgs /mergerfs/tools/install-build-pkgs
|
|
RUN tools/install-build-pkgs
|
|
|
|
# need to copy with .git directory, because git history is used to create Changelog
|
|
COPY mergerfs/ /mergerfs/
|
|
RUN make deb
|
|
|
|
RUN mkdir deb && cp ../mergerfs_*.deb deb/
|