Install script and supervisor init
This commit is contained in:
parent
e17315e3d2
commit
a70377b94a
6 changed files with 83 additions and 18 deletions
39
Dockerfile
39
Dockerfile
|
@ -4,30 +4,35 @@ COPY ./aur-packages/srcpkgs/cage-vi/ /tmp/cage/
|
|||
|
||||
RUN pacman -Syu --noconfirm base-devel \
|
||||
&& chown -R nobody: /tmp/cage/ \
|
||||
&& source /tmp/cage/PKGBUILD && pacman -Syu --noconfirm ${depends[@]} ${makedepends[@]} \
|
||||
&& source /tmp/cage/PKGBUILD && pacman -S --noconfirm ${depends[@]} ${makedepends[@]} \
|
||||
&& runuser -u nobody -- sh -c "cd /tmp/cage/ && makepkg -c --noconfirm"
|
||||
|
||||
FROM binhex/arch-base:latest
|
||||
|
||||
COPY --from=build /tmp/cage/*.pkg.tar.zst /tmp/cage/
|
||||
|
||||
RUN pacman -Syu --noconfirm mesa mesa-libgl wayvnc seatd \
|
||||
xorg-xwayland noto-fonts gnu-free-fonts \
|
||||
&& pacman -U --noconfirm /tmp/cage/*.pkg.tar.zst \
|
||||
&& yes y | pacman -Scc >/dev/null 2>&1 \
|
||||
&& rm -rf /usr/share/man/* /usr/share/doc/* \
|
||||
/var/cache/pacman/pkg/* /var/lib/pacman/sync/* \
|
||||
/tmp/*
|
||||
COPY build/root/*.sh /root/
|
||||
COPY config/ /config/
|
||||
COPY supervisor/*.conf /etc/supervisor/conf.d/
|
||||
|
||||
COPY wayvnc.conf /etc/wayvnc/config
|
||||
RUN chmod +x /root/*.sh && \
|
||||
/bin/bash /root/install.sh
|
||||
|
||||
ENV PGID=10000 \
|
||||
PUID=10000 \
|
||||
HOME=/home/user
|
||||
# TODO, move to install.sh
|
||||
ENV PUID=10000 \
|
||||
PGID=10000 \
|
||||
UMASK=022 \
|
||||
WAYLAND_DISPLAY=wayland-0 \
|
||||
XDG_RUNTIME_DIR=/run/user/${PUID} \
|
||||
WLR_BACKENDS=headless \
|
||||
WLR_NO_HARDWARE_CURSORS=1 \
|
||||
WLR_DRM_DEVICES=/dev/dri/card0
|
||||
|
||||
RUN useradd -U -u ${PGID} -G users,seat,video,render -d "${HOME}" user \
|
||||
&& mkdir -p /run/user/${PGID} \
|
||||
&& chown user: /run/user/${PGID} \
|
||||
&& chmod 7700 /run/user/${PGID}
|
||||
RUN usermod -a -G seat,video,render nobody \
|
||||
&& mkdir -p ${XDG_RUNTIME_DIR} \
|
||||
&& chown ${PUID}:${PGID} ${XDG_RUNTIME_DIR} \
|
||||
&& chmod 7700 ${XDG_RUNTIME_DIR}
|
||||
|
||||
WORKDIR /
|
||||
EXPOSE 5900
|
||||
|
||||
CMD ["/bin/bash", "/usr/local/bin/init.sh"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue