-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (22 loc) · 1.02 KB
/
Dockerfile
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
FROM azul/zulu-openjdk-alpine:11-latest as build
ARG CLIENT_EXTENSION_NAME=spring-boot
RUN apk add --no-cache dos2unix
WORKDIR /root/.liferay/workspace
RUN wget https://raw.githubusercontent.com/lgdd/liferay-product-info/main/releases.json
WORKDIR /workspace
COPY gradle gradle
COPY gradlew gradlew
COPY gradle.properties gradle.properties
COPY settings.gradle settings.gradle
COPY build.gradle build.gradle
COPY platform.bndrun platform.bndrun
RUN dos2unix gradlew
RUN ./gradlew
COPY configs configs
COPY client-extensions/$CLIENT_EXTENSION_NAME client-extensions/$CLIENT_EXTENSION_NAME
RUN ./gradlew :client-extensions:$CLIENT_EXTENSION_NAME:build
FROM liferay/jar-runner:latest
ARG CLIENT_EXTENSION_NAME=spring-boot
COPY --from=build --chown=liferay:liferay /workspace/client-extensions/$CLIENT_EXTENSION_NAME/build/libs/*.jar /opt/liferay/jar-runner.jar
COPY --from=build --chown=liferay:liferay /workspace/client-extensions/$CLIENT_EXTENSION_NAME/dxp-metadata /opt/liferay/dxp-metadata
ENV LIFERAY_ROUTES_DXP=/opt/liferay/dxp-metadata