Skip to content

Commit

Permalink
Merge pull request #9 from cwrc/development
Browse files Browse the repository at this point in the history
security updates; tomcat & spring
  • Loading branch information
jefferya authored Nov 18, 2020
2 parents 755b9cb + de0dd8a commit 3906247
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@


######## Stage #1: build

FROM maven:3-jdk-13 AS build_stage
FROM maven:3.6-openjdk-11 AS build_stage

ARG APP_SRC=/app

Expand All @@ -20,8 +19,7 @@ RUN mvn compile && mvn package war:war


######## stage #2 Tomcat

FROM tomcat:9 AS tomcat_stage
FROM tomcat:9.0-jdk11-openjdk AS tomcat_stage

ARG APP_SRC=/app

Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.7'

services:

validator:
build:
context: .
dockerfile: Dockerfile
#image: "cwrc/cwrc-validator:latest"
#volumes:
# - ./container_volumes/validator/:/usr/local/tomcat/logs
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.2.1.RELEASE</version>
<version>5.2.11.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.2.1.RELEASE</version>
<version>5.2.11.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>[5.2.3,)</version>
<version>5.2.11.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.taglibs</groupId>
Expand Down

0 comments on commit 3906247

Please sign in to comment.