File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ COPY --from=builder --chown=testrunner:testrunner /build /opt/project
3838# Copy runtime Maven settings to testrunner user (from build context root)
3939COPY --chown=testrunner:testrunner ./settings-runtime.xml /home/testrunner/.m2/settings.xml
4040
41+ # Copy Scripts with correct ownership and permissions (BEFORE switching user)
42+ COPY --chown=testrunner:testrunner ./test-runner.sh /usr/local/bin/test-runner.sh
43+ RUN chmod +x /usr/local/bin/test-runner.sh
44+
4145# Ensure the workdir is writable by testrunner
4246RUN chown -R testrunner:testrunner /opt/project && \
4347 chmod -R 775 /opt/project
@@ -47,9 +51,5 @@ ENV MAVEN_HOME=/opt/maven
4751ENV PATH=$MAVEN_HOME/bin:$PATH
4852ENV MAVEN_OPTS="-Dmaven.repo.local=/home/testrunner/.m2/repository"
4953
50- # Copy Scripts with correct ownership and permissions
51- COPY --chown=testrunner:testrunner ./test-runner.sh /usr/local/bin/test-runner.sh
52- RUN chmod +x /usr/local/bin/test-runner.sh
53-
5454USER testrunner
5555ENTRYPOINT ["/usr/local/bin/test-runner.sh" ]
You can’t perform that action at this time.
0 commit comments