Skip to content

Commit 597ffd5

Browse files
committed
Updates Dockerfile
1 parent 5b4c50e commit 597ffd5

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ jobs:
3030
path: ~/.m2/repository
3131
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3232
restore-keys: ${{ runner.os }}-maven-
33+
- name: Set up JDK Corretto 21
34+
uses: actions/setup-java@v3
35+
with:
36+
distribution: 'corretto'
37+
java-version: '21'
38+
architecture: x64
39+
- name: Install NodeJS
40+
uses: actions/setup-node@v3
41+
with:
42+
node-version: 18
43+
- name: Install esbuild
44+
run: npm i -g esbuild
45+
- name: Install TypeScript compiler
46+
run: npm i -g typescript
3347

3448
- name: "Configure Git"
3549
run: |

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ It is good for exploration about the different features and their applicability
88
#### Docker
99

1010
```
11-
docker pull ghcr.io/dirigiblelabs/sample-custom-stack:latest
12-
docker run --name custom-stack --rm -p 8080:8080 ghcr.io/dirigiblelabs/sample-custom-stack:latest
11+
docker pull ghcr.io/dirigiblelabs/custom-stack:latest
12+
docker run --name custom-stack --rm -p 8080:8080 ghcr.io/dirigiblelabs/custom-stack:latest
1313
```
1414

1515
- For Apple's M1: provide `--platform=linux/arm64` for better performance
@@ -23,23 +23,23 @@ mvn clean install
2323
#### Run
2424

2525
```
26-
java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED -jar application/target/sample-custom-stack-application-*.jar
26+
java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED -jar application/target/custom-stack-application-*.jar
2727
```
2828

2929
#### Debug
3030

3131
```
32-
java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -jar application/target/sample-custom-stack-application-*.jar
32+
java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -jar application/target/custom-stack-application-*.jar
3333
```
3434

3535
#### Web
3636

3737
```
38-
http://localhost
38+
http://localhost:8080
3939
```
4040

4141
#### REST API
4242

4343
```
44-
http://localhost/swagger-ui/index.html
44+
http://localhost:8080/swagger-ui/index.html
4545
```

application/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
FROM amazoncorretto:21
2+
23
VOLUME /tmp
4+
5+
RUN apk add nodejs npm
6+
RUN npm i -g esbuild
7+
RUN npm i -g typescript
8+
39
COPY target/*.jar custom-stack.jar
410
ENTRYPOINT ["java", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED", "--add-opens", "java.base/java.nio=ALL-UNNAMED", "-jar", "/custom-stack.jar"]

0 commit comments

Comments
 (0)