Files
pkgmgr/Dockerfile

41 lines
1.0 KiB
Docker
Raw Normal View History

FROM archlinux:latest
2025-07-11 07:19:44 +02:00
# Update system and install core tooling
RUN pacman -Syu --noconfirm \
&& pacman -S --noconfirm --needed \
git \
make \
sudo \
python \
python-pip \
python-virtualenv \
python-setuptools \
python-wheel \
&& pacman -Scc --noconfirm
2025-07-11 07:19:44 +02:00
# Ensure local bin is in PATH (for pkgmgr links)
2025-07-11 07:19:44 +02:00
ENV PATH="/root/.local/bin:$PATH"
# Create virtual environment
2025-07-11 07:19:44 +02:00
ENV VIRTUAL_ENV=/root/.venvs/pkgmgr
RUN python -m venv $VIRTUAL_ENV
2025-07-11 07:19:44 +02:00
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Working directory for the package-manager project
2025-07-11 07:19:44 +02:00
WORKDIR /root/Repositories/github.com/kevinveenbirkenbach/package-manager
# Copy local package-manager source into container
2025-07-11 07:19:44 +02:00
COPY . .
# Install Python dependencies and register pkgmgr inside the venv
2025-07-11 07:19:44 +02:00
RUN pip install --upgrade pip \
&& pip install PyYAML \
&& chmod +x main.py \
&& python main.py install package-manager --quiet --clone-mode shallow --no-verification
# Copy again to allow rebuild-based code changes
COPY . .
2025-07-11 07:19:44 +02:00
ENTRYPOINT ["pkgmgr"]
CMD ["--help"]