[Docker] Update iqdb to work with latest changes

This commit is contained in:
Earlopain 2023-04-06 22:07:24 +02:00
parent 9a97e02b20
commit 69fc143ec7
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
2 changed files with 6 additions and 3 deletions

View File

@ -111,7 +111,7 @@ services:
- IQDB_HOSTNAME=localhost
- IQDB_PORT=62125
# Hardcoded in iqdbs Procfile
- IQDB_DATABASE_FILE=/home/vagrant/iqdbs/e621.db
- IQDB_DATABASE_FILE=/iqdb/e621.db
- SINATRA_PORT=4567
- IMAGES_FOLDER=/data
- REDIS_URL=redis://redis
@ -121,7 +121,7 @@ services:
- redis
volumes:
- post_data:/data
- iqdb_data:/home/vagrant/iqdbs
- iqdb_data:/iqdb
# Useful for development

View File

@ -19,6 +19,9 @@ FROM ruby:3.1.4-alpine3.17
RUN apk --no-cache add git libjpeg-turbo gd tzdata
WORKDIR /iqdbs
RUN bundle config without production
ADD https://api.github.com/repos/e621ng/iqdbs/git/refs/heads/master /tmp/iqdbs_version.json
RUN git clone https://github.com/e621ng/iqdbs /iqdbs \
&& bundler install --gemfile /iqdbs/Gemfile \
@ -28,4 +31,4 @@ COPY --from=builder /tmp/iqdb/iqdb /usr/bin/
WORKDIR /iqdbs
CMD ["foreman", "start"]
CMD ["foreman", "start", "-f", "Procfile.dev"]