Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit ff3aa93

Browse files
committed
change user to USER 1001 in Dockerfile.sbt-toolset 2
1 parent 10cfbde commit ff3aa93

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build/package/Dockerfile.sbt-toolset

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ RUN SBT_INSTALL_DIR=/tmp/sbt-install && \
2121
ln -s /opt/sbt/bin/sbt /usr/local/bin/sbt && \
2222
rm -rf $SBT_INSTALL_DIR
2323

24-
USER jboss
25-
2624
RUN sbt -v sbtVersion && \
2725
rm -rf project target
2826

29-
USER root
3027
# Add scripts
3128
COPY build/package/scripts/cache-build.sh /usr/local/bin/cache-build
3229
COPY build/package/scripts/copy-build-if-cached.sh /usr/local/bin/copy-build-if-cached
@@ -39,7 +36,7 @@ RUN chmod +x /usr/local/bin/build-sbt && \
3936
chmod +x /usr/local/bin/copy-build-if-cached && \
4037
chmod +x /usr/local/bin/copy-artifacts && \
4138
chmod +x /usr/local/bin/supply-sonar-project-properties-default && \
42-
chown -R jboss: /tmp/.sbt
39+
chown -R 1001:0 /tmp/.sbt
4340
# TODO set sbt http proxy chmod +x /usr/local/bin/set-sbt-proxy # TODO set sbt http proxy
4441

4542
# Add sonar-project.properties

0 commit comments

Comments
 (0)