summarylogtreecommitdiffstats
path: root/Dockerfile
blob: b12a0905b4aa93fa6959d7688e8beacc0bb4403e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM brianrobt/archlinux-aur-dev:latest

# Copy local AUR package files to the container
COPY --chown=builder:builder .SRCINFO PKGBUILD ./

# Update the system to resolve 404 errors for micromamba dependencies, libsolv and nss
USER root
RUN pacman -Syu --noconfirm

# Install build dependencies
USER builder
RUN yay -S --noconfirm \
    python \
    python-hatch-vcs \
    python-build \
    python-installer \
    python-wheel \
    python-boltons \
    micromamba

# Build the package
RUN makepkg -si --noconfirm

# Test that the package was installed correctly
RUN python -c "import conda_libmamba_solver; print('Package successfully installed')"