Changed project structure, created docker-compose.yml for run all applications in one command.

This commit is contained in:
2023-01-13 16:58:31 +01:00
parent 749120666a
commit ea1cf0488c
70 changed files with 3915 additions and 267 deletions

View File

@@ -0,0 +1,21 @@
# Using maven image, based on java 8
FROM maven:3.6.3-jdk-8 as target
WORKDIR build
COPY ./ ./
RUN mvn -ntp package
# Go to working directory in docker image
# WORKDIR /usr/app/
FROM openjdk:slim-buster
COPY --from=target /build/target/*jar-with-dependencies.jar /app/REST_XSLT.jar
# Download dependencies during image build
# (RUN - works on image creation)
# (CMD - works on container start)
# RUN mvn dependency:resolve
# RUN mvn dependency:go-offline
# On container creation - run maven tests
CMD exec java -jar /app/REST_XSLT.jar