mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-10 14:45:45 +02:00
Set default home value (#281)
* Set default home value * Apply default home value based on user for run commands * rename default home function
This commit is contained in:
@@ -21,3 +21,6 @@ RUN rm /etc/baz
|
||||
# Test with ARG
|
||||
ARG file
|
||||
RUN echo "run" > $file
|
||||
|
||||
RUN echo "test home" > $HOME/file
|
||||
COPY context/foo $HOME/foo
|
||||
|
||||
@@ -18,4 +18,10 @@ RUN groupadd testgroup
|
||||
USER testuser:testgroup
|
||||
RUN echo "hey" > /tmp/foo
|
||||
USER testuser:1001
|
||||
RUN echo "hey2" >> /tmp/foo
|
||||
RUN echo "hey2" >> /tmp/foo
|
||||
|
||||
RUN useradd -ms /bin/bash newuser
|
||||
USER newuser
|
||||
RUN echo "hi" > $HOME/file
|
||||
COPY context/foo $HOME/foo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user