DALab CI/CD commited on
Commit
984e168
·
1 Parent(s): f98bfd8

Update-da-autocompliance-dev-20250617_215337

Browse files
Files changed (2) hide show
  1. Dockerfile +27 -22
  2. README.md +38 -12
Dockerfile CHANGED
@@ -1,22 +1,27 @@
1
- FROM openjdk:21-jdk-slim
2
-
3
- WORKDIR /code
4
-
5
- RUN apt-get update && apt-get install -y curl wget && rm -rf /var/lib/apt/lists/*
6
-
7
- RUN useradd -m -u 1000 user
8
- USER user
9
-
10
- ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
11
-
12
- WORKDIR $HOME/app
13
-
14
- COPY --chown=user . $HOME/app
15
-
16
- RUN if [ -f "gradlew" ]; then chmod +x gradlew && ./gradlew build -x test; fi
17
-
18
- EXPOSE 8080
19
-
20
- HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 CMD curl -f http://localhost:8080/actuator/health || exit 1
21
-
22
- CMD ["java", "-jar", "build/libs/da-autocompliance.jar"]
 
 
 
 
 
 
1
+ FROM openjdk:21-jdk-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install required packages
6
+ RUN apt-get update && apt-get install -y \
7
+ curl \
8
+ wget \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Copy application files
12
+ COPY . .
13
+
14
+ # Build application (if build.gradle.kts exists)
15
+ RUN if [ -f "build.gradle.kts" ]; then \
16
+ ./gradlew build -x test; \
17
+ fi
18
+
19
+ # Expose port
20
+ EXPOSE 8080
21
+
22
+ # Health check
23
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
24
+ CMD curl -f http://localhost:8080/actuator/health || exit 1
25
+
26
+ # Run application
27
+ CMD ["java", "-jar", "build/libs/da-autocompliance.jar"]
README.md CHANGED
@@ -1,12 +1,38 @@
1
- ---
2
- title: da-autocompliance dev
3
- emoji: 🔧
4
- colorFrom: blue
5
- colorTo: green
6
- sdk: docker
7
- app_port: 8080
8
- ---
9
-
10
- # da-autocompliance - dev Environment
11
-
12
- This is the da-autocompliance microservice deployed in the dev environment.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: da-autocompliance (dev)
3
+ emoji: 🔧
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: docker
7
+ app_port: 8080
8
+ ---
9
+
10
+ # da-autocompliance - dev Environment
11
+
12
+ This is the da-autocompliance microservice deployed in the dev environment.
13
+
14
+ ## Features
15
+
16
+ - RESTful API endpoints
17
+ - Health monitoring via Actuator
18
+ - JWT authentication integration
19
+ - PostgreSQL database connectivity
20
+
21
+ ## API Documentation
22
+
23
+ Once deployed, API documentation will be available at:
24
+ - Swagger UI: https://huggingface.co/spaces/dalabsai/da-autocompliance-dev/swagger-ui.html
25
+ - Health Check: https://huggingface.co/spaces/dalabsai/da-autocompliance-dev/actuator/health
26
+
27
+ ## Environment
28
+
29
+ - **Environment**: dev
30
+ - **Port**: 8080
31
+ - **Java Version**: 21
32
+ - **Framework**: Spring Boot
33
+
34
+ ## Deployment
35
+
36
+ This service is automatically deployed via the DALab CI/CD pipeline.
37
+
38
+ Last updated: 2025-06-17 21:53:33