Skip to content

Commit 0a60595

Browse files
committed
feat: Dockerfile works
1 parent 8ac8cdc commit 0a60595

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM bitnami/wildfly:23.0.2
2+
VOLUME /tmp
3+
ARG EAR_FILE
4+
ADD carrental-ear/target/${EAR_FILE} opt/bitnami/wildfly/standalone/deployments/app.ear

buildDocker.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
#./mvnw clean install -Dnpm.test.script=test-chromium
3+
./mvnw clean install -Ddocker=true
4+
docker build -t angular2guy/angular2andjavaee:latest --build-arg EAR_FILE=carrental-ear.ear --no-cache .
5+
docker run --name=mywildfly -p 8080:8080 -e WILDFLY_PASSWORD=my_password --memory="512m" --cpus=1.0 angular2guy/angular2andjavaee:latest

0 commit comments

Comments
 (0)