Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you have a docker image? #1

Open
jiuxiaxixi opened this issue Jun 29, 2024 · 2 comments
Open

Do you have a docker image? #1

jiuxiaxixi opened this issue Jun 29, 2024 · 2 comments

Comments

@jiuxiaxixi
Copy link

No description provided.

@FelixKohlhas
Copy link
Owner

I have not published a docker image, but you can build it locally. I am using the following docker-compose.yml:

version: '3.3'

services:
  flask_pdf_search:
    container_name: flask_pdf_search
    build:
      context: /srv/docker/build/pdf_search
    volumes:
      - /srv/docker/build/pdf_search:/app
    stop_signal: SIGINT
    command: app.py --url-prefix "https://.../" --database "pdf_search_all.db"
    restart: unless-stopped

Adjust the path /srv/docker/build/pdf_search to point to where you cloned the repository. By default it will look for the database file in that directory. Let me know if that works.

@FelixKohlhas
Copy link
Owner

Update: I have just pushed an image to https://hub.docker.com/r/felixkohlhas/pdf_search. I have not had a chance to try it out yet unfortunately. Maybe you can have a check if you can clone and run it.

docker run -d \
  --name flask_pdf_search \
  -v /srv/docker/build/pdf_search:/app \
  --stop-signal SIGINT \
  felixkohlhas/pdf_search:latest \
  app.py --url-prefix "https://.../" --database "pdf_search_all.db"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants