Commit 956a1d78 authored by Jørn Åne de Jong's avatar Jørn Åne de Jong

First commit

parents
/app
/deb
FROM debian:wheezy
MAINTAINER Jørn Åne de Jong <jorn.dejong@uninett.no>
RUN useradd build
RUN apt-get update && apt-get install -y --no-install-recommends devscripts fakeroot build-essential debhelper
COPY app /home/build/app
RUN chown build -R /home/build
USER build
WORKDIR /home/build
RUN cd app && yes | debuild -d -us -uc
CMD tar c *.deb
Debian build container
======================
Put a debian source tree in `app` and run `./build.sh`.
A new directory `deb` will be created.
#!/bin/sh
if [ ! -d app ]
then
echo 'Put the debian source tree in the "app" directory' >&2
exit 1
fi
docker build -t deb-build .
mkdir -p deb
docker run --rm deb-build | tar x -C deb
ls deb
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment