diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 28b031683..000000000
--- a/Dockerfile
+++ /dev/null
@@ -1,15 +0,0 @@
-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"]
-
diff --git a/pom.xml b/pom.xml
index 1ee9bd8da..edf773ea1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -192,6 +192,19 @@
1.8
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar
+
+
+
+
org.apache.maven.plugins
maven-jar-plugin
@@ -199,14 +212,45 @@
- true
- lib/
- org.whispersystems.textsecuregcm.WhisperServerService
true
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+ 1.6
+
+ true
+
+
+ *:*
+
+ META-INF/*.SF
+ META-INF/*.DSA
+ META-INF/*.RSA
+
+
+
+
+
+
+ package
+
+ shade
+
+
+
+
+
+ org.whispersystems.textsecuregcm.WhisperServerService
+
+
+
+
+
+
org.apache.maven.plugins
@@ -215,117 +259,27 @@
- maven-dependency-plugin
- 3.1.1
-
-
- initialize
-
- copy-dependencies
-
-
- false
- runtime
- ${project.build.directory}/lib
-
-
-
-
-
- com.spotify
- dockerfile-maven-plugin
- 1.4.8
-
-
- production
-
- build
- push
-
-
- ${ecr.repository}/signal-service
- false
- ${project.version}-production
-
- ${project.build.finalName}.jar
- production.yml
-
-
-
-
- staging
-
- build
- push
-
-
- ${ecr.repository}/signal-service
- false
- ${project.version}-staging
-
- ${project.build.finalName}.jar
- staging.yml
-
-
-
-
-
-
- org.signal
- ecs-maven-plugin
- 1.1-SNAPSHOT
+ maven-assembly-plugin
+ 2.4
- US_EAST_1
- signal-service
- staging
- ${project.version}-staging
+
+ assembly.xml
+
- staging
+ make-assembly
+ package
- create-task-revision
+ single
-
- staging
- ${project.version}-staging
-
-
-
- production
-
- create-task-revision
-
-
- production
- ${project.version}-production
-
-
- org.apache.maven.plugins
- maven-deploy-plugin
- 3.0.0-M1
-
- true
-
-
-
-
-
- sonatype-nexus-snapshots
- https://oss.sonatype.org/content/repositories/snapshots
-
- true
-
-
-
-
gcm-server-repository