Added dockerfile.
This commit is contained in:
parent
74c8a199f7
commit
4fe25da30b
|
@ -0,0 +1,15 @@
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
EXPOSE 8081
|
||||||
|
|
||||||
|
COPY target/lib /usr/share/signal/lib
|
||||||
|
|
||||||
|
ARG CONFIG_FILE
|
||||||
|
COPY config/${CONFIG_FILE} /usr/share/signal/config.yml
|
||||||
|
|
||||||
|
ARG JAR_FILE
|
||||||
|
COPY target/${JAR_FILE} /usr/share/signal/Signal-Service.jar
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/bin/java", "-server", "-Djava.awt.headless=true", "-Xmx2048m", "-Xss512k", "-jar", "/usr/share/signal/Signal-Service.jar", "server", "/usr/share/signal/config.yml"]
|
||||||
|
|
18
pom.xml
18
pom.xml
|
@ -279,7 +279,23 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<overWriteReleases>false</overWriteReleases>
|
||||||
|
<includeScope>runtime</includeScope>
|
||||||
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.spotify</groupId>
|
<groupId>com.spotify</groupId>
|
||||||
<artifactId>dockerfile-maven-plugin</artifactId>
|
<artifactId>dockerfile-maven-plugin</artifactId>
|
||||||
|
|
Loading…
Reference in New Issue