mirror of
https://github.com/signalapp/Signal-Server
synced 2026-05-14 16:50:11 +01:00
Added dockerfile.
This commit is contained in:
+15
@@ -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"]
|
||||
|
||||
@@ -279,7 +279,23 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</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>
|
||||
<groupId>com.spotify</groupId>
|
||||
<artifactId>dockerfile-maven-plugin</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user