Skip to content

Commit a504c10

Browse files
committed
fix: dockerfile
1 parent 15cbade commit a504c10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

infra/docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)
3939
COPY --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
4246
RUN chown -R testrunner:testrunner /opt/project && \
4347
chmod -R 775 /opt/project
@@ -47,9 +51,5 @@ ENV MAVEN_HOME=/opt/maven
4751
ENV PATH=$MAVEN_HOME/bin:$PATH
4852
ENV 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-
5454
USER testrunner
5555
ENTRYPOINT ["/usr/local/bin/test-runner.sh"]

0 commit comments

Comments
 (0)