@@ -14,6 +14,10 @@ ENV PYTHONPATH=/app \
1414 POETRY_VIRTUALENVS_IN_PROJECT=1 \
1515 POETRY_VIRTUALENVS_CREATE=1
1616
17+ COPY ./docker/entrypoint_worker.sh /app/entrypoint.sh
18+ RUN chmod +x /app/entrypoint.sh
19+ ENTRYPOINT ["/app/entrypoint.sh"]
20+
1721
1822FROM base AS builder
1923
@@ -72,11 +76,6 @@ COPY --from=maven_packages --chown=syncmaster:syncmaster /root/.ivy2/ /home/sync
7276
7377COPY ./syncmaster/ /app/syncmaster/
7478RUN python -m compileall syncmaster
75-
76- COPY ./docker/entrypoint_worker.sh /app/entrypoint.sh
77- RUN chmod +x /app/entrypoint.sh
78- ENTRYPOINT ["/app/entrypoint.sh"]
79-
8079USER syncmaster
8180
8281
@@ -94,11 +93,8 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry \
9493
9594ENV SYNCMASTER__WORKER__CREATE_SPARK_SESSION_FUNCTION=tests.spark.get_worker_spark_session
9695
97- COPY ./docker/entrypoint_worker.sh /app/entryp
98- ENTRYPOINT ["/app/entrypoint.sh"]
9996# Collect coverage from worker
100- RUN sed -i 's/python -m/coverage run -m/g' /app/entrypoint.shoint.sh
101- RUN chmod +x /app/entrypoint.sh
97+ RUN sed -i 's/python -m/coverage run -m/g' /app/entrypoint.sh
10298
10399# Replace kinit binary with dummy, to skip Kerberos interaction in tests
104100RUN mkdir -p /app/.local/bin && \
0 commit comments