Files
pkgmgr/Dockerfile
T

25 lines
669 B
Docker
Raw Normal View History

# syntax=docker/dockerfile:1
# hadolint ignore=DL3006,InvalidDefaultArgInFrom
# BASE_IMAGE carries no default on purpose: a default would build one
# distribution's image under another distribution's tag whenever the build arg
# is forgotten. scripts/build/base.sh is the only place that resolves it.
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
2025-07-11 07:19:44 +02:00
SHELL ["/bin/bash", "-lc"]
WORKDIR /build
COPY . .
2025-07-11 07:19:44 +02:00
RUN set -eu; \
echo "Building and installing package-manager via make install..."; \
make install; \
rm -rf /build
COPY scripts/docker/entry.sh /usr/local/bin/docker-entry.sh
WORKDIR /opt/src/pkgmgr
ENTRYPOINT ["/usr/local/bin/docker-entry.sh"]
CMD ["pkgmgr", "--help"]