Skip to content

Commit 0b74190

Browse files
committed
Create Dockerfile for Dockerhub
1 parent a2ec5e2 commit 0b74190

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM jboss/wildfly:10.0.0.Final
2+
MAINTAINER Maxime Gréau <greaumaxime@gmail.com>
23

3-
RUN touch /opt/jboss/wildfly/standalone/deployments/ROOT.war.dodeploy
4+
ENV APP_VERSION 1.1.0
5+
ENV APP_DOWNLOAD_URL https://github.com/mgreau/javaee7-websocket/releases/download/v${APP_VERSION}/javaee7-websocket-${APP_VERSION}.war
6+
7+
RUN curl -L -o ${JBOSS_HOME}/standalone/deployments/ROOT.war ${APP_DOWNLOAD_URL}
48

59
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]

Dockerfile.dev

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM jboss/wildfly:10.0.0.Final
2+
3+
RUN touch /opt/jboss/wildfly/standalone/deployments/ROOT.war.dodeploy
4+
5+
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]

deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Backend:: Run Backend
22
deploy:
3-
build: .
3+
build: Dockerfile.dev
44
ports:
55
- "80:8080"
66
volumes:

0 commit comments

Comments
 (0)