Skip to content

Commit b163317

Browse files
committed
generate.pl: set an always-accessible WORKDIR for any user
Ensure Perl containers can run even when the working `USER` is altered by using `WORKDIR /`, as non-root users are unable to access `/root`. This is especially noticeable in Kubernetes clusters (where container processes are prevented from running as root.) Fixes #72.
1 parent bad811d commit b163317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,6 @@ =head1 DESCRIPTION
299299
&& {{docker_slim_run_purge}} \
300300
&& rm -fr ./cpanm /root/.cpanm /usr/src/perl /usr/src/{{cpanm_dist_name}}* /tmp/*
301301
302-
WORKDIR /root
302+
WORKDIR /
303303
304304
CMD ["perl{{version}}","-de0"]

0 commit comments

Comments
 (0)