Skip to content
Snippets Groups Projects
Commit 4ded74db authored by Bernardus Willson's avatar Bernardus Willson
Browse files

Merge branch 'dock' into 'main'

fix dependencies'

See merge request !4
parents 3f40536f 00d8fd2f
Branches
Tags
1 merge request!4fix dependencies'
......@@ -11,10 +11,10 @@ services:
MYSQL_USER: toco
MYSQL_PASSWORD: toco
toco-soap:
build:
dockerfile: Dockerfile
context: .
ports:
- "8080:8080"
# toco-soap:
# build:
# dockerfile: Dockerfile
# context: .
# ports:
# - "8080:8080"
FROM mysql/mysql-server:8.0.23
COPY db/toco_soap.sql /docker-entrypoint-initdb.d/
FROM maven:3.8.6-amazoncorretto-8 AS build
COPY . /app
WORKDIR /app
RUN --mount=type=cache,target=/root/.m2 mvn clean install
FROM amazoncorretto:8
COPY --from=build /app/target /app
WORKDIR /app
EXPOSE 8080
CMD ["java", "-jar", "toco_Soap-1.0-SNAPSHOT.jar"]
\ No newline at end of file
#FROM maven:3.8.6-amazoncorretto-8 AS build
#
#COPY . /app
#
#WORKDIR /app
#
#RUN --mount=type=cache,target=/root/.m2 mvn clean install
#
#FROM amazoncorretto:8
#
#COPY --from=build /app/target /app
#
#WORKDIR /app
#
#EXPOSE 8080
#
#CMD java -jar toco_Soap-1.0-SNAPSHOT.jar
\ No newline at end of file
......@@ -27,6 +27,12 @@
<version>1.18.20</version>
<scope>provided</scope>
</dependency>
<!-- sql connector-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.26</version>
</dependency>
<dependency>
<groupId>org.glassfish.metro</groupId>
<artifactId>webservices-api</artifactId>
......@@ -34,6 +40,7 @@
</dependency>
</dependencies>
<build>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment