File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ USER root
6
6
RUN apk --no-cache upgrade && \
7
7
apk --no-cache add \
8
8
bash \
9
+ clamav \
10
+ clamav-daemon \
9
11
cmake \
10
12
exiftool \
11
13
ffmpeg \
@@ -35,6 +37,11 @@ RUN apk --no-cache upgrade && \
35
37
# cargo install rbspy && \
36
38
echo "******** Packages Installed *********"
37
39
40
+ RUN sed -i 's/User clamav/User app/g' /etc/clamav/clamd.conf
41
+ RUN mkdir -p /var/run/clamav && chown -R app:app /var/run/clamav
42
+ RUN mkdir -p /var/log/clamav && chown -R app:app /var/log/clamav
43
+ RUN chown -R app:app /var/lib/clamav
44
+
38
45
RUN wget https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.0-57.tar.gz \
39
46
&& tar xf 7.1.0-57.tar.gz \
40
47
&& apk --no-cache add \
@@ -98,5 +105,6 @@ RUN RAILS_ENV=production SECRET_KEY_BASE=`bin/rake secret` DB_ADAPTER=nulldb DAT
98
105
CMD ./bin/web
99
106
100
107
FROM hyku-web as hyku-worker
108
+ RUN freshclam
101
109
ENV MALLOC_ARENA_MAX=2
102
110
CMD ./bin/worker
Original file line number Diff line number Diff line change 9
9
puts 'DATABASE_URL not set, no pool change needed'
10
10
end
11
11
12
- exec "echo $DATABASE_URL && bundle exec sidekiq"
12
+ exec "echo $DATABASE_URL && clamd && bundle exec sidekiq"
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ services:
126
126
target : hyku-worker
127
127
args :
128
128
- HYKU_BULKRAX_ENABLED=true
129
- command : bundle exec sidekiq
129
+ command : clamd && bundle exec sidekiq
130
130
depends_on :
131
131
- check_volumes
132
132
- db
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ services:
182
182
# #
183
183
# # With the following line, uncommented during active development, we'll
184
184
# # run bundle then run sidekiq.
185
- # command: sh -l -c "bundle && bundle exec sidekiq"
185
+ command : sh -l -c "clamd && bundle && bundle exec sidekiq"
186
186
# #
187
187
# # Similar to the above, except we will bundle and then tell the container
188
188
# # to wait. You'll then need to bash into the worker container and start
You can’t perform that action at this time.
0 commit comments