diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-07-16 19:01:54 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-07-16 19:01:54 +0200 |
commit | d75adf324cb1badb832b7c65bf9ffbaafe115bc1 (patch) | |
tree | e0a029035c7f8267e477e571f29f1e887cafb893 /container/Dockerfile | |
parent | 7f698caa7cacdd1c8b2744cfa2cf49e05c66aed9 (diff) | |
download | aurbuilder-d75adf324cb1badb832b7c65bf9ffbaafe115bc1.tar.gz |
move docker dir
Diffstat (limited to 'container/Dockerfile')
-rw-r--r-- | container/Dockerfile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/container/Dockerfile b/container/Dockerfile new file mode 100644 index 0000000..9decea7 --- /dev/null +++ b/container/Dockerfile @@ -0,0 +1,30 @@ +FROM archlinux:base-devel + +ENV PACKAGE_NAME="" +ENV PACKAGER="John Doe <John.Doe@example.com>" +ENV ARCH="x86_64" +ENV FORCE_REBUILD="no" +ENV CHOWN="" + +RUN pacman --noconfirm -Syu +RUN pacman --noconfirm -S git sudo + +RUN groupadd sudo +RUN useradd --groups sudo --home-dir /workdir --create-home --user-group --system aurbuilder +COPY --chown=root:root sudoers /etc/sudoers + + +RUN mkdir /pkgout +VOLUME /pkgout + +RUN mkdir /pkgdest +RUN chown aurbuilder:aurbuilder /pkgdest + +RUN pacman --noconfirm -S python python-requests + +RUN mkdir -p /opt/aurbuilder + +COPY --chown=root:root bin/ /opt/aurbuilder +ENV PATH="${PATH}:/opt/aurbuilder" + +CMD buildpackage.sh |