forked from e621ng/e621ng
[Docker] Update iqdb to work with latest changes
This commit is contained in:
parent
9a97e02b20
commit
69fc143ec7
@ -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
|
||||
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user