Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 30, 2024
1 parent 42436ad commit 7ea5f74
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile.crf
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ WORKDIR /opt/grobid

COPY --from=builder /opt/grobid .

RUN if [ "$TARGETARCH" = "linux/arm64" ]; then \
export PROCESS_MECHANISM="-Djdk.lang.Process.launchMechanism=vfork "; \
ARG TARGETARCH
ARG PROCESS_MECHANISM

RUN if [ "$TARGETARCH" = "arm64" ]; then \
PROCESS_MECHANISM="-Djdk.lang.Process.launchMechanism=vfork "; \
else \
export PROCESS_MECHANISM=""; \
fi && \
echo "PROCESS_MECHANISM=$PROCESS_MECHANISM" >> /etc/environment
PROCESS_MECHANISM=""; \
fi

RUN echo "Selected process spawning mechanism: $PROCESS_MECHANISM"

Expand Down

0 comments on commit 7ea5f74

Please sign in to comment.