chore: use multistage dockerfile correctly from compose
This commit is contained in:
parent
7433bc2f4e
commit
389304ed4d
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ WORKDIR $BUILD
|
|||
RUN --mount=type=cache,target=$MAVEN_HOME/.m2,uid=$BUILD_UID \
|
||||
mvn -e -Duser.home=$MAVEN_HOME package
|
||||
|
||||
FROM openjdk:7u211-jre-alpine
|
||||
FROM openjdk:7u211-jre-alpine AS backend
|
||||
RUN <<EOF
|
||||
set -e
|
||||
mkdir -p /app
|
|
@ -5,7 +5,8 @@ services:
|
|||
backend:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.backend
|
||||
dockerfile: docker/Dockerfile.application
|
||||
target: backend
|
||||
restart: always
|
||||
environment:
|
||||
LW_CONFIGURE: 1
|
||||
|
|
Loading…
Add table
Reference in a new issue