-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathmaven.Dockerfile
More file actions
22 lines (21 loc) · 946 Bytes
/
maven.Dockerfile
File metadata and controls
22 lines (21 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Copyright © 2019 Cask Data, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
# Dockerfile for building container for building CDAP.
# It populate maven cache with dependencies needed for building CDAP.
FROM gcr.io/cloud-builders/mvn:3.8-jdk-8 AS build
ENV MAVEN_OPTS -Xmx4096m -Dhttp.keepAlive=false
WORKDIR /cdap/maven/
COPY . /cdap/maven/
RUN mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.1:go-offline -B -V -P template,dist,k8s