This commit is contained in:
parent
cb8640ebd3
commit
e15886c457
@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y git
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN sh gradlew clean bootJar
|
RUN sh gradlew clean bootJar
|
||||||
|
RUN rm -f build/libs/*-plain.jar
|
||||||
|
|
||||||
# Build for container image
|
# Build for container image
|
||||||
FROM cubetiq/openjdk:jre-11u-debian
|
FROM cubetiq/openjdk:jre-11u-debian
|
||||||
@ -24,11 +25,11 @@ WORKDIR /opt/cubetiq
|
|||||||
# App volumn
|
# App volumn
|
||||||
VOLUME ["/opt/cubetiq", "/data"]
|
VOLUME ["/opt/cubetiq", "/data"]
|
||||||
|
|
||||||
# Clinic Api Module Build Directory
|
# Api Module Build Directory
|
||||||
ARG CLINIC_API_BUILD_DIR=api/build
|
ARG API_BUILD_DIR=api/build
|
||||||
|
|
||||||
# Copy the app bundle to the workdir
|
# Copy the app bundle to the workdir
|
||||||
COPY --from=builder /app/${CLINIC_API_BUILD_DIR}/libs/*.jar ./api.jar
|
COPY --from=builder /app/${API_BUILD_DIR}/libs/*.jar ./api.jar
|
||||||
|
|
||||||
# App profile will run with
|
# App profile will run with
|
||||||
ENV PROFILE=dev
|
ENV PROFILE=dev
|
||||||
|
Loading…
Reference in New Issue
Block a user