Add basic Docker support for lingo server
This commit is contained in:
parent
127eed5cb4
commit
cd7cbccf83
@ -65,6 +65,27 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- How to build image directly to Docker daemon: -->
|
||||||
|
<!-- $ mvn jib:dockerBuild -->
|
||||||
|
<!-- How to build image and publish to Docker registry: -->
|
||||||
|
<!-- $ mvn jib:build -Djib.to.image=<myregistry>/<myimage>:latest -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.google.cloud.tools</groupId>
|
||||||
|
<artifactId>jib-maven-plugin</artifactId>
|
||||||
|
<version>1.2.0</version>
|
||||||
|
<configuration>
|
||||||
|
<!-- Enable this setting to allow pushes to local Docker registry -->
|
||||||
|
<!--<allowInsecureRegistries>true</allowInsecureRegistries>-->
|
||||||
|
<from>
|
||||||
|
<image>gcr.io/distroless/java:11</image>
|
||||||
|
</from>
|
||||||
|
<container>
|
||||||
|
<ports>
|
||||||
|
<port>8080</port>
|
||||||
|
</ports>
|
||||||
|
</container>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user