Skip to content

Commit 5b03c54

Browse files
author
SUSE Update Bot
committed
Test build for #3474
1 parent b2ff370 commit 5b03c54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

distribution-image/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ RUN set -euo pipefail; \
3131
RUN set -euo pipefail; \
3232
[ "$(rpm --root /target -q --qf '%{version}' distribution-registry | \
3333
cut -d '.' -f -2)" = "3.0" ]
34+
RUN set -euo pipefail; zypper -n install --no-recommends systemd && \
35+
systemd-tmpfiles --create --root /target distribution-registry.conf
36+
3437

3538
# cleanup logs and temporary files
3639
RUN set -euo pipefail; zypper -n --installroot /target clean -a; \
@@ -67,6 +70,5 @@ LABEL io.artifacthub.package.readme-url="%SOURCEURL_WITH(README.md)%"
6770
ENTRYPOINT ["/usr/bin/registry"]
6871
CMD ["serve", "/etc/registry/config.yml"]
6972
EXPOSE 5000/tcp
70-
RUN set -euo pipefail; install -d -m 0755 -o registry -g registry /var/lib/docker-registry
7173
USER registry
7274
VOLUME /var/lib/docker-registry

0 commit comments

Comments
 (0)