Skip to content

Commit cc3b077

Browse files
committed
Update Dockerfile
1 parent 0bab1c7 commit cc3b077

1 file changed

Lines changed: 7 additions & 29 deletions

File tree

docker/Dockerfile

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,26 @@
11
FROM eclipse-temurin:21-jre-jammy
22
LABEL maintainer="admin@keep.pt" vendor="KEEP SOLUTIONS"
33

4-
# Install dependencies
4+
# Install dependencies & Remove python dependency
55
RUN set -ex; \
66
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/* && \
1310
DEBIAN_FRONTEND=noninteractive \
14-
apt-get autoremove -y --purge *python*
11+
apt-get autoremove -y --purge "*python*"
1512

1613
COPY ./docker-files/clamd.conf /etc/clamav/clamd.conf
1714

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
2316
COPY ./target/roda-wui-*.war /KEEPS/bin/
2417

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-
4118
ENV RODA_HOME=/roda \
4219
LDAP_SERVER_URL=ldap://openldap \
4320
LDAP_SERVER_PORT=1389 \
4421
SIEGFRIED_MODE=server \
4522
SIEGFRIED_SERVER_URL=http://siegfried:5138 \
23+
SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/roda_core_db \
4624
RODA_USER="roda" \
4725
RODA_UID="1000" \
4826
RODA_GROUP="roda" \

0 commit comments

Comments
 (0)