SHARE
TWEET

Untitled

a guest Jun 16th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM openjdk:11-jdk-slim AS build
  2. WORKDIR /app
  3. COPY . ./
  4. RUN ./gradlew --no-daemon --stacktrace clean shadowJar
  5.  
  6. FROM openjdk:11-jre-slim
  7. WORKDIR /app
  8. COPY --from=build /app/build/libs/*.jar app.jar
  9. RUN mkdir data
  10. CMD java -jar app.jar
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24. version: "3"
  25. services:
  26.   api:
  27.     build: .
  28.     ports:
  29.       - 8080:8080
  30.     volumes:
  31.       - ./data:/app/data
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top