Skip to content

Commit dcb5934

Browse files
committed
Containerfile: set PATH to avoid the container runtimes default
1 parent 19fae95 commit dcb5934

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ RUN \
5858
install -dm1777 tmp; \
5959
xbps-reconfigure -fa; \
6060
rm -rf /var/cache/xbps/*
61+
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
6162
CMD ["/bin/sh"]
6263

6364
FROM scratch AS image-busybox
@@ -69,6 +70,7 @@ RUN \
6970
install -dm1777 tmp; \
7071
xbps-reconfigure -fa; \
7172
rm -rf /var/cache/xbps/*
73+
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
7274
CMD ["/bin/sh"]
7375

7476
FROM scratch AS image-full
@@ -77,4 +79,5 @@ RUN \
7779
install -dm1777 tmp; \
7880
xbps-reconfigure -fa; \
7981
rm -rf /var/cache/xbps/*
82+
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
8083
CMD ["/bin/sh"]

0 commit comments

Comments
 (0)