diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-01-26 19:46:44 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-01-26 19:46:44 +0100 |
commit | 9e9fffc899c41eccd031212ef0af23c78fc7a1c6 (patch) | |
tree | d4876451b14d72dd720bde5a01eadf5842fb2aff /docker/Dockerfile | |
parent | d9656b75b47ffcf35be21d2f82ddb7c0b584e419 (diff) | |
download | aurbuilder-9e9fffc899c41eccd031212ef0af23c78fc7a1c6.tar.gz |
structure
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..f7b5e7f --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,27 @@ +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 -G sudo -d /workdir -m aurbuilder +COPY --chown=root:root sudoers /etc/sudoers + + +RUN mkdir /pkgout +VOLUME /pkgout + +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 |