|
1 | 1 | FROM eclipse-temurin:21-jre-jammy |
2 | 2 | LABEL maintainer="admin@keep.pt" vendor="KEEP SOLUTIONS" |
3 | 3 |
|
4 | | -# Install dependencies |
| 4 | +# Install dependencies & Remove python dependency |
5 | 5 | RUN set -ex; \ |
6 | 6 | apt-get -qq update && \ |
7 | | - apt-get -qq -y install software-properties-common; \ |
8 | | - apt-get -qq -y --no-install-recommends install clamdscan rsync jq && \ |
9 | | - apt-get clean && rm -rf /var/lib/apt/lists/* |
10 | | - |
11 | | -# Remove python dependency |
12 | | -RUN \ |
| 7 | + apt-get -qq -y install software-properties-common && \ |
| 8 | + apt-get -qq -y --no-install-recommends install clamdscan jq rsync && \ |
| 9 | + apt-get clean && rm -rf /var/lib/apt/lists/* && \ |
13 | 10 | DEBIAN_FRONTEND=noninteractive \ |
14 | | - apt-get autoremove -y --purge *python* |
| 11 | + apt-get autoremove -y --purge "*python*" |
15 | 12 |
|
16 | 13 | COPY ./docker-files/clamd.conf /etc/clamav/clamd.conf |
17 | 14 |
|
18 | | -# setup remove old ROOT folder from tomcat |
19 | | -#RUN set -ex; \ |
20 | | -# rm -rf /usr/local/tomcat/webapps/ROOT |
21 | | - |
22 | | -# Install web application |
| 15 | +# Copy the Roda WUI WAR file |
23 | 16 | COPY ./target/roda-wui-*.war /KEEPS/bin/ |
24 | 17 |
|
25 | | -# Fix configuration & do some final cleanup |
26 | | -#RUN mkdir -p /usr/local/tomcat/conf/Catalina/localhost |
27 | | -#RUN chmod -R a+rwx /usr/local/tomcat/conf/Catalina |
28 | | - |
29 | | -#RUN set -ex; \ |
30 | | -# unzip -q /usr/local/tomcat/webapps/ROOT/WEB-INF/lib/roda-core-*.jar config/roda-core.properties && \ |
31 | | -# sed -i -e 's/^core.plugins.internal.virus_check.clamav/#&/' -e 's/^core.tools.siegfried.mode/#&/' config/roda-core.properties && \ |
32 | | -# echo "\n" >> config/roda-core.properties && \ |
33 | | -# echo "core.plugins.internal.virus_check.clamav.bin = /usr/bin/clamdscan" >> config/roda-core.properties && \ |
34 | | -# echo "core.plugins.internal.virus_check.clamav.params = -m --fdpass" >> config/roda-core.properties && \ |
35 | | -# echo "core.plugins.internal.virus_check.clamav.get_version = clamdscan --version" >> config/roda-core.properties && \ |
36 | | -# echo "core.tools.siegfried.mode = server" >> config/roda-core.properties && \ |
37 | | -# zip -q /usr/local/tomcat/webapps/ROOT/WEB-INF/lib/roda-core-*.jar config/roda-core.properties ; \ |
38 | | -# apt-get remove -y curl zip && apt-get clean && apt-get autoremove ; \ |
39 | | -# rm -rf /var/lib/apt/lists/* |
40 | | - |
41 | 18 | ENV RODA_HOME=/roda \ |
42 | 19 | LDAP_SERVER_URL=ldap://openldap \ |
43 | 20 | LDAP_SERVER_PORT=1389 \ |
44 | 21 | SIEGFRIED_MODE=server \ |
45 | 22 | SIEGFRIED_SERVER_URL=http://siegfried:5138 \ |
| 23 | + SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/roda_core_db \ |
46 | 24 | RODA_USER="roda" \ |
47 | 25 | RODA_UID="1000" \ |
48 | 26 | RODA_GROUP="roda" \ |
|
0 commit comments