docker: use environment args to set parameters

This commit is contained in:
lanvent
2023-03-26 03:31:29 +08:00
parent e226c93eeb
commit 46a6223a43
5 changed files with 23 additions and 63 deletions

View File

@@ -28,7 +28,7 @@ ADD ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh \
&& adduser -D -h /home/noroot -u 1000 -s /bin/bash noroot \
&& chown noroot:noroot ${BUILD_PREFIX}
&& chown -R noroot:noroot ${BUILD_PREFIX}
USER noroot