FROM voidlinux/voidlinux:latest
ENV CI=true
RUN echo 'repository=https://repo-default.voidlinux.org/current' > /etc/xbps.d/00-repository-main.conf && \
xbps-install -Sy && \
xbps-install -yu xbps && \
xbps-install -Sy && \
xbps-install -y \
curl \
ca-certificates \
sudo \
nodejs \
bash \
which \
unzip \
glibc \
chromium
RUN npm install -g pnpm
ENV CHROME_BIN=/usr/bin/chromium
RUN useradd -m -s /bin/bash testuser && \
echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN xbps-remove -y xvfb-run || true && \
rm -f /usr/bin/xvfb-run /usr/local/bin/xvfb-run
RUN ! which xvfb-run || exit 1
WORKDIR /app
USER testuser
CMD ["bash"]