From d66b8cb72e85e006b1dc751d0d56d2e33769a00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nagy=20K=C3=A1roly=20G=C3=A1briel?= Date: Tue, 17 May 2016 00:33:11 +0300 Subject: [PATCH] builder: added Dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aa2dd88 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM scratch +MAINTAINER Nagy Károly Gábriel + +ADD files/rootfs.tar.bz2 / + +ENV USER builder +ENV GROUP builder +ENV HOME /home/${USER} + +RUN groupadd -g 1000 ${GROUP} +RUN useradd -m -s /bin/bash -u 1000 -g ${GROUP} ${USER} + +VOLUME ${HOME} +ENV PATH ${HOME}/bin:${PATH} + +USER ${USER} +WORKDIR ${HOME} + +CMD ["/bin/bash"]