File tree Expand file tree Collapse file tree 3 files changed +43
-3
lines changed Expand file tree Collapse file tree 3 files changed +43
-3
lines changed Original file line number Diff line number Diff line change 1- FROM  eclipse-temurin: 21-alpine 
1+ FROM  postgres:13. 21-alpine3.22 
22
3- RUN  apk --no-cache add libxml2 bash
3+ ENTRYPOINT  []
4+ 
5+ RUN  apk --no-cache add openjdk21
6+ RUN  apk --no-cache add libxml2
47
58# ############
69# ## Tolgee  #
Original file line number Diff line number Diff line change 1+ FROM eclipse-temurin:21-alpine
2+ 
3+ RUN apk --no-cache add libxml2 bash 
4+ 
5+ #############
6+ ### Tolgee  #
7+ #############
8+ 
9+ # Expose application port
10+ EXPOSE 8080
11+ 
12+ # Define persistent volume for data storage
13+ VOLUME /data
14+ 
15+ # Environment variables for configuration
16+ ENV HEALTHCHECK_PORT=8080 \
17+     spring_profiles_active=docker
18+ 
19+ # Copy necessary application files
20+ COPY BOOT-INF/lib /app/lib
21+ COPY META-INF /app/META-INF
22+ COPY BOOT-INF/classes /app
23+ COPY --chmod=755 cmd.sh /app
24+ 
25+ #################
26+ ### Let's go   ##
27+ #################
28+ 
29+ # Define the startup command
30+ ENTRYPOINT ["/app/cmd.sh"]
31+ 
32+ 
33+ # Health check to ensure the app is up and running
34+ HEALTHCHECK --interval=10s --timeout=3s --retries=20 \
35+     CMD wget --spider -q "http://127.0.0.1:$HEALTHCHECK_PORT/actuator/health" || exit 1
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ services:
66    environment :
77      - POSTGRES_PASSWORD=postgres 
88  app :
9-     image : tolgee/tolgee 
9+     build :
10+       context : ../build/docker 
11+       dockerfile : Dockerfile 
1012    ports :
1113      - ${exposePort}:8080 
1214    env_file :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments