FROM grobid/grobid:0.8.1 USER root RUN mkdir -m 777 -p /opt/grobid/grobid-home/tmp RUN mkdir -m 777 -p /opt/grobid/logs RUN chmod -R uog+rw /data/db RUN apt-get update && apt-get install -y python3 python3-pip # Copy application files for future use (but don't use them yet) COPY . /app RUN pip3 install -r /app/requirements.txt # Start both Grobid service and Python app CMD sh -c './grobid-service/bin/grobid-service & sleep 15 && cd /app && python3 app.py'