mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
Fix #2 speed up container build use mount caching
This commit is contained in:
parent
e97298fdd3
commit
cbf65dfa28
@ -6,8 +6,8 @@ COPY src src
|
|||||||
# Copy default props file
|
# Copy default props file
|
||||||
COPY src/main/resources/props/sample.props.template src/main/resources/props/default.props
|
COPY src/main/resources/props/sample.props.template src/main/resources/props/default.props
|
||||||
COPY src/main/resources/container.logback.xml.example src/main/resources/default.logback.xml
|
COPY src/main/resources/container.logback.xml.example src/main/resources/default.logback.xml
|
||||||
RUN mvn -e -B dependency:resolve
|
RUN --mount=type=cache,target=/root/.m2 mvn -e -B dependency:resolve
|
||||||
RUN mvn -e -B package
|
RUN --mount=type=cache,target=/root/.m2 mvn -e -B package
|
||||||
|
|
||||||
FROM jetty
|
FROM jetty
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user