Import docker-gc-build branch
[docker-gc-build/.git] / Dockerfile
1 FROM ubuntu:xenial
2
3 LABEL description="Docker image for building docker-gc debian package" \
4       maintainer="infra-guild@gonitro.com" \
5       repository="https://github.com/Nitro/docker-gc"
6
7 ARG VERSION
8 ARG AWS_ACCESS_KEY_ID
9 ARG AWS_SECRET_ACCESS_KEY
10
11 ADD . /tmp
12
13 WORKDIR /tmp
14 ENV DEBIAN_FRONTEND=noninteractive
15 RUN apt-get update && apt install -y \
16     git \
17     devscripts \
18     debhelper \
19     curl \
20     build-essential \
21     dh-make
22
23 RUN DEBEMAIL="Infrastructure Guild <infra-guild@gonitro.com>" dch "Nitro build." \
24     --newversion "${VERSION}" \
25     --no-auto-nmu
26
27 RUN debuild --no-lintian -us -uc -b