Skip to content

Dockerfile for creating deb packages (Ubuntu 15.10)

avalchev edited this page Mar 30, 2016 · 3 revisions
FROM ubuntu:15.10

RUN apt-get update
RUN apt-get install -yq \
    git cmake pkg-config libtool llvm g++ \
    libssl-dev \
    ruby ruby-dev rubygems
RUN gem install fpm


RUN mkdir /build/ && mkdir /build/install && mkdir /build/build
WORKDIR /build
RUN git clone https://github.com/pocoproject/poco.git
WORKDIR /build/poco
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr -H. -B../build
RUN cmake --build ../build/

WORKDIR /build/build/
RUN make install DESTDIR=/build/install

RUN fpm \
  -s dir -t deb \
  -n "libpoco-dev" \
  -v "1.7.2" \
  -p "/build/NAME_VERSION_ARCH.deb" \
  -C "/build/install" \
  --description "Poco Library" \
  --category libs \
  --provides libpoco-dev \
  --depends libc6 \
  --depends libstdc++6 \
  --depends libssl-dev \
  usr/lib usr/include usr/bin

Package is located at /build directory.