Add docker deployments with caprover
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
ce4d00a788
commit
ecdb66706e
3 changed files with 20 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM openjdk:14-jdk as builder
|
||||||
|
MAINTAINER William Brawner <me@wbrawner.com>
|
||||||
|
|
||||||
|
RUN mkdir -p /home/gradle
|
||||||
|
COPY . /home/gradle/src
|
||||||
|
WORKDIR /home/gradle/src
|
||||||
|
RUN /home/gradle/src/gradlew --console=plain --no-daemon server:bootJar
|
||||||
|
|
||||||
|
FROM openjdk:14-jdk-slim
|
||||||
|
EXPOSE 8080
|
||||||
|
COPY --from=builder /home/gradle/src/server/build/libs/flayre-server.jar flayre-server.jar
|
||||||
|
CMD /usr/local/openjdk-14/bin/java $JVM_ARGS -jar /flayre-server.jar
|
4
captain-definition
Normal file
4
captain-definition
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"schemaVersion": 2,
|
||||||
|
"dockerfilePath": "./Dockerfile"
|
||||||
|
}
|
|
@ -10,6 +10,10 @@ repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bootJar {
|
||||||
|
archiveFileName = "flayre-server.${archiveExtension.get()}"
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':shared')
|
implementation project(':shared')
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
|
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
|
||||||
|
|
Loading…
Reference in a new issue