fix: subuid cleanup
This commit is contained in:
parent
d504595922
commit
4161f32529
@ -32,8 +32,8 @@ ADD entrypoint.sh /usr/local/bin/entrypoint.sh
|
|||||||
# conf/registries.conf will be mounted RO at runtime to inherit worker settings incl. caching proxies
|
# conf/registries.conf will be mounted RO at runtime to inherit worker settings incl. caching proxies
|
||||||
ADD --chown=$BUILDUSER:$BUILDUSER conf/containers.conf conf/storage.conf /home/$BUILDUSER/.config/containers
|
ADD --chown=$BUILDUSER:$BUILDUSER conf/containers.conf conf/storage.conf /home/$BUILDUSER/.config/containers
|
||||||
|
|
||||||
RUN echo -e "$BUILDUSER:1:999\n$BUILDUSER:1001:64535" > /etc/subuid && \
|
RUN echo -e "$BUILDUSER:100000:65535" > /etc/subuid && \
|
||||||
echo -e "$BUILDUSER:1:999\n$BUILDUSER:1001:64535" > /etc/subgid && \
|
echo -e "$BUILDUSER:100000:65535" > /etc/subgid && \
|
||||||
cd /usr/bin && ln -s podman docker && \
|
cd /usr/bin && ln -s podman docker && \
|
||||||
chown $BUILDUSER:$BUILDUSER -R /home/$BUILDUSER
|
chown $BUILDUSER:$BUILDUSER -R /home/$BUILDUSER
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user