-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpom.xml
59 lines (54 loc) · 1.89 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.masterylearning</groupId>
<artifactId>main</artifactId>
<version>0.10.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>reverse-proxy</artifactId>
<version>0.10.2</version>
<packaging>pom</packaging>
<build>
<plugins>
<!-- Build client's docker image. This works as following:
- The `Dockerfile` is copied to target/docker together
- with any resource listed in the resources section.
- Then docker is invoked with the docker file to build
- the image.
-->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>reverse-proxy</id>
<phase>install</phase>
<goals>
<goal>build</goal>
</goals>
<configuration>
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
<imageTags>
<imageTag>latest</imageTag>
<imageTag>${project.version}</imageTag>
</imageTags>
<dockerDirectory>${project.basedir}/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.basedir}</directory>
<includes>
<include>nginx/**</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>