2025-12-12 16:40:21 +01:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
|
2026-09-18 15:51:25 +02:00
|
|
|
# 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.
|
2025-12-11 17:27:57 +01:00
|
|
|
ARG BASE_IMAGE
|
2026-09-18 15:51:25 +02:00
|
|
|
FROM ${BASE_IMAGE}
|
2025-07-11 07:19:44 +02:00
|
|
|
|
2025-12-12 16:50:32 +01:00
|
|
|
SHELL ["/bin/bash", "-lc"]
|
2025-12-11 17:27:57 +01:00
|
|
|
|
2025-12-09 05:31:55 +01:00
|
|
|
WORKDIR /build
|
|
|
|
|
|
2025-12-07 20:54:04 +01:00
|
|
|
COPY . .
|
2025-07-11 07:19:44 +02:00
|
|
|
|
2026-03-26 16:44:02 +01:00
|
|
|
RUN set -eu; \
|
2025-12-12 16:40:21 +01:00
|
|
|
echo "Building and installing package-manager via make install..."; \
|
|
|
|
|
make install; \
|
2026-03-26 16:44:02 +01:00
|
|
|
rm -rf /build
|
2025-12-12 16:40:21 +01:00
|
|
|
|
|
|
|
|
COPY scripts/docker/entry.sh /usr/local/bin/docker-entry.sh
|
2025-12-08 00:24:22 +01:00
|
|
|
|
2025-12-17 11:03:02 +01:00
|
|
|
WORKDIR /opt/src/pkgmgr
|
2025-12-09 05:31:55 +01:00
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-entry.sh"]
|
|
|
|
|
CMD ["pkgmgr", "--help"]
|