Podman: Use named debian image, add appstream dependency

This commit is contained in:
Ron Williams 2024-05-14 12:39:43 -07:00
parent 50c9d3d2ce
commit 68604cef70

View file

@ -1,7 +1,13 @@
FROM ubuntu:latest
FROM debian:bookworm-20240513-slim
RUN apt-get update \
# _UID_ must be replaced with the user's uid on host
# podman root is mapped to your user id on host during build,
# poduser is mapped to your user id during podman run
RUN useradd --create-home --no-log-init --uid _UID_ poduser \
&& chown -R root:root /home \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
appstream \
autoconf \
automake \
autopoint \
@ -53,9 +59,3 @@ RUN apt-get update \
protobuf-compiler \
intltool
# _UID_ must be replaced with the user's uid on host
# podman root is mapped to your user id on host during build,
# poduser is mapped to your user id during podman run
RUN useradd --create-home --no-log-init --uid _UID_ poduser && \
chown -R root:root /home