File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Push Docker Image on Release
2
2
3
3
on :
4
- push :
5
- branches : [ "main" ]
6
- pull_request :
7
- branches : [ "main" ]
4
+ release :
5
+ types : [published]
8
6
9
7
env :
10
8
DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE : " ${{secrets.DIGICERT_PKEY_PASSPHRASE}}"
Original file line number Diff line number Diff line change @@ -3,9 +3,12 @@ WORKDIR /app
3
3
COPY . .
4
4
RUN mvn clean package -DskipTests
5
5
6
- FROM eclipse-temurin:17-jre
6
+ FROM eclipse-temurin:17-jre-alpine
7
7
WORKDIR /app
8
8
9
+ # Install the 'shadow' package to get groupadd and useradd
10
+ RUN apk add --no-cache shadow
11
+
9
12
# Create a non-root user to run the application
10
13
RUN groupadd -r appgroup && useradd -r -g appgroup appuser
11
14
Original file line number Diff line number Diff line change 10
10
</parent >
11
11
<groupId >com.contrast.labs.ai.mcp</groupId >
12
12
<artifactId >mcp-contrast</artifactId >
13
- <version >0.0.4-SNAPSHOT </version >
13
+ <version >0.0.4</version >
14
14
<name >mcp-contrast</name >
15
15
<description >MCP Server</description >
16
16
<url />
You can’t perform that action at this time.
0 commit comments