-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
73 lines (59 loc) · 2.42 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
FROM rockylinux:9.3-minimal
RUN microdnf -y --refresh upgrade \
&& microdnf -y --best --nodocs --noplugins \
install \
httpd \
tar \
unzip \
nodejs \
&& microdnf clean all
ENV NODE_ENV="production"
RUN microdnf -y --best --nodocs --noplugins \
install \
nodejs \
&& microdnf clean all \
&& npm i -g pagefind
RUN cd /tmp \
&& curl -L -o OpenJDK17U-jre_x64_linux_hotspot_17.0.12_7.tar.gz https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12+7/OpenJDK17U-jre_x64_linux_hotspot_17.0.12_7.tar.gz \
&& tar -xf OpenJDK17U-jre_x64_linux_hotspot_17.0.12_7.tar.gz \
&& rm -f OpenJDK17U-jre_x64_linux_hotspot_17.0.12_7.tar.gz \
&& mkdir -p /usr/lib/jvm \
&& mv jdk-17.0.12+7-jre /usr/lib/jvm \
&& ln -s /usr/lib/jvm/jdk-17.0.12+7-jre/bin/java /usr/local/bin/java
ENV JAVA_HOME="/usr/lib/jvm/jdk-17.0.12+7-jre"
RUN mkdir -p /docbox \
&& mkdir -p /docbox/dist \
&& mkdir -p /var/www/html/dist \
&& mkdir -p /var/www/html/ingest \
&& mkdir -p /var/www/html/artifacts \
&& mkdir -p /var/log/docbox
RUN cd /tmp \
&& curl -L -o bootstrap-5.3.1-dist.zip "https://github.com/twbs/bootstrap/releases/download/v5.3.1/bootstrap-5.3.1-dist.zip" \
&& mkdir -p /var/www/html/dist \
&& unzip -o bootstrap-5.3.1-dist.zip -d /tmp \
&& cp -r /tmp/bootstrap-5.3.1-dist /var/www/html/dist/bootstrap-5.3.1 \
&& cp -r /tmp/bootstrap-5.3.1-dist /docbox/dist/bootstrap-5.3.1 \
&& rm -rf /tmp/bootstrap-5.3.1-dist \
&& rm -f /tmp/bootstrap-5.3.1-dist.zip
COPY ./docker/css/application.css /docbox/dist/application.css
COPY ./docker/css/gh-fork-ribbon.min.css /docbox/dist/gh-fork-ribbon.min.css
COPY ./docker/js/darkmode.js /docbox/dist/darkmode.js
COPY ./docker/application.properties /docbox/application.properties
COPY ./docker/httpd.conf /etc/httpd/conf/httpd.conf
COPY ./target/quarkus-app /docbox
COPY ./docker/PrepareHttpd.jar /docbox
COPY ./docker/PrepareDist.jar /docbox
ENV PAGEFIND_SITE=/var/www/html/artifacts/
ENV DOCBOX_HOSTURL=http://localhost
ENV TEMP=/var/log/quarkus
ENV TZ=Europe/Berlin
ADD ./docker/entrypoint.sh /docbox/entrypoint.sh
WORKDIR /docbox
CMD ["sh", "./entrypoint.sh"]
EXPOSE 80
# VOLUME /var/www/html/dist
# VOLUME /var/www/html/ingest
# VOLUME /var/www/html/artifacts
VOLUME /var/www/html/
VOLUME /var/log/
VOLUME /docbox/