Commit b2a37cbd authored by Josh Ji's avatar Josh Ji

Dockerfile

parent bab8c8c7
FROM maven AS build
COPY . /tmp
WORKDIR /tmp
RUN mvn clean package -DskipTests
FROM openjdk:11-jre-slim
COPY --from=build /tmp/target/*.jar app.jar
EXPOSE 8086
ENV SPRING_DATASOURCE_USERNAME=root
ENV SPRING_DATASOURCE_PASSWORD=idppasswd
ENV SPRING_DATASOURCE_URL=jdbc:mysql://140.118.137.29:3306/idp
ENTRYPOINT java -jar app.jar
\ No newline at end of file
Markdown is supported
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