-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
18 lines (18 loc) · 982 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM tomcat:10-jdk21
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update \
&& apt install -y postgresql-common \
&& /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y \
&& apt install -y \
postgresql-client-16 \
&& rm -rf /var/cache/apk/*
RUN rm -rf "${CATALINA_HOME}/webapps/ROOT"
COPY target/Biblivre6/WEB-INF/tags ${CATALINA_HOME}/webapps/Biblivre6/WEB-INF/tags
COPY target/Biblivre6/WEB-INF/templates ${CATALINA_HOME}/webapps/Biblivre6/WEB-INF/templates
COPY target/Biblivre6/WEB-INF/tlds ${CATALINA_HOME}/webapps/Biblivre6/WEB-INF/tlds
COPY target/Biblivre6/WEB-INF/lib ${CATALINA_HOME}/webapps/Biblivre6/WEB-INF/lib
COPY target/Biblivre6/WEB-INF/jsp ${CATALINA_HOME}/webapps/Biblivre6/WEB-INF/jsp
COPY target/Biblivre6/WEB-INF/classes ${CATALINA_HOME}/webapps/Biblivre6/WEB-INF/classes
COPY target/Biblivre6/WEB-INF/web.xml ${CATALINA_HOME}/webapps/Biblivre6/WEB-INF/web.xml
ENV JAVA_OPTS="-XX:+UnlockExperimentalVMOptions --enable-preview"
EXPOSE 8080