Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Add Docker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Anh3h committed Mar 8, 2019
1 parent 5d496da commit 77bb50c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .dockerignore
@@ -0,0 +1,17 @@
api/
component-test/
gradle/
gradlew.bat
LICENSE
README.md
settings.gradle
build.gradle
docs/
gradlew
HEADER
NOTICE.txt
service/
.git/
.gradle/
.gitignore
shared.gradle
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -17,3 +17,5 @@ gradle-app.setting
*.log

*.toDelete

*.jar
12 changes: 12 additions & 0 deletions Dockerfile
@@ -0,0 +1,12 @@
FROM openjdk:8-jdk-alpine

ARG office_port=2023

ENV server.max-http-header-size=16384 \
cassandra.clusterName="Test Cluster" \
server.port=$office_port

WORKDIR /tmp
COPY office-service-boot-0.1.0-BUILD-SNAPSHOT.jar .

CMD ["java", "-jar", "office-service-boot-0.1.0-BUILD-SNAPSHOT.jar"]

0 comments on commit 77bb50c

Please sign in to comment.