Skip to content

Commit f924350

Browse files
nddipiazzaCopilot
andcommitted
TIKA-4703: Fix chmod failure in tika-grpc Dockerfile on CI
The chmod was running after USER $UID_GID, so it ran as the non-root user and could not change permissions on the root-owned file copied from the build context. This worked locally because the file already had the execute bit set on the host filesystem, but CI builds start with a clean context where the bit is absent. Move chmod to before the USER switch so it runs as root. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent dc99fff commit f924350

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tika-grpc/docker-build/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ RUN set -eux \
4949
&& apt-get clean -y \
5050
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
5151

52+
RUN chmod +x "/tika/bin/start-tika-grpc.sh"
53+
5254
USER $UID_GID
5355

5456
EXPOSE 9090
5557
ENV TIKA_VERSION=$VERSION
5658
ENV TIKA_GRPC_MAX_INBOUND_MESSAGE_SIZE=$TIKA_GRPC_MAX_INBOUND_MESSAGE_SIZE
5759
ENV TIKA_GRPC_MAX_OUTBOUND_MESSAGE_SIZE=$TIKA_GRPC_MAX_OUTBOUND_MESSAGE_SIZE
5860
ENV TIKA_GRPC_NUM_THREADS=$TIKA_GRPC_NUM_THREADS
59-
RUN chmod +x "/tika/bin/start-tika-grpc.sh"
6061
ENTRYPOINT ["/tika/bin/start-tika-grpc.sh"]
6162

6263
LABEL maintainer="Apache Tika Developers dev@tika.apache.org"

0 commit comments

Comments
 (0)