Add docker deployments with caprover

Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
William Brawner 2020-09-05 12:02:34 -07:00
parent ce4d00a788
commit ecdb66706e
3 changed files with 20 additions and 0 deletions

12
Dockerfile Normal file
View 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
View file

@ -0,0 +1,4 @@
{
"schemaVersion": 2,
"dockerfilePath": "./Dockerfile"
}

View file

@ -10,6 +10,10 @@ repositories {
mavenCentral()
}
bootJar {
archiveFileName = "flayre-server.${archiveExtension.get()}"
}
dependencies {
implementation project(':shared')
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'