feat: add arch packaging

This commit is contained in:
2024-08-06 20:35:00 +02:00
parent 5469fdcf92
commit ccd07141f5
11 changed files with 301 additions and 63 deletions

18
deb-builder.dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM debian:latest
# TODO: Remove busybox from this list once you're done experimenting (you only need vi)
RUN apt-get update ; apt-get install -y build-essential devscripts dh-make busybox
ARG DOCKER_USER=deb
# Set user and group
ARG user=appuser
ARG group=appuser
ARG uid=1000
ARG gid=1000
RUN groupadd -g ${gid} ${group}
RUN useradd -u ${uid} -g ${group} -s /bin/sh -m ${user} # <--- the '-m' create a user home directory
ENV USER=${user}
# Switch to user
USER ${uid}:${gid}
ENTRYPOINT ["bash", "--login"]