- Add Docker Compose configurations for dev, prod, and standalone environments - Add database initialization scripts (init-db.sh, init-db-docker.sh) - Add enhanced start-docker-linux.sh with DB init support - Add comprehensive database initialization guide - Support for automatic dbexport.pgsql import on first run - Include safety checks for production environment
20 lines
638 B
Docker
20 lines
638 B
Docker
FROM dockerhub.wace.me/tomcat:7.0.94-jre7-alpine.linux AS production
|
|
|
|
# Remove default webapps
|
|
RUN rm -rf /usr/local/tomcat/webapps/*
|
|
|
|
# Copy web application content (compiled classes and web resources)
|
|
COPY WebContent /usr/local/tomcat/webapps/ROOT
|
|
COPY src /usr/local/tomcat/webapps/ROOT/WEB-INF/src
|
|
|
|
# Copy custom Tomcat context configuration for JNDI
|
|
COPY ./tomcat-conf/context.xml /usr/local/tomcat/conf/context.xml
|
|
|
|
# Copy database driver if needed (PostgreSQL driver is already in WEB-INF/lib)
|
|
# COPY path/to/postgresql-driver.jar /usr/local/tomcat/lib/
|
|
|
|
# Expose Tomcat port
|
|
EXPOSE 8080
|
|
|
|
# Start Tomcat
|
|
CMD ["catalina.sh", "run"] |