forked from IBM/java-liberty-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·25 lines (19 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
executable file
·25 lines (19 loc) · 803 Bytes
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
# IBM Java SDK UBI is not available on public docker yet. Use regular
# base as builder until this is ready. For reference:
# https://github.com/ibmruntimes/ci.docker/tree/master/ibmjava/8/sdk/ubi-min
FROM ibmjava:8-sdk AS builder
LABEL maintainer="IBM Java Engineering at IBM Cloud"
WORKDIR /app
COPY . /app
RUN apt-get update && apt-get install -y maven
RUN mvn -N io.takari:maven:wrapper -Dmaven=3.5.0
RUN ./mvnw install
# Multi-stage build. New build stage that uses the UBI as the base image.
FROM ibmcom/websphere-liberty:kernel-java8-ibmjava-ubi
LABEL maintainer="IBM Java Engineering at IBM Cloud"
ENV PATH /project/target/liberty/wlp/bin/:$PATH
COPY --from=builder /app/target/liberty/wlp/usr/servers/defaultServer /config/
USER root
RUN chmod g+w /config/apps
RUN configure.sh
USER 1001