Skip to content

Commit

Permalink
Add simple docker file for homework
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-schwarz authored and andreas-bauer committed Sep 11, 2020
1 parent 8ddd6f8 commit aede4f1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile.simple
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM adoptopenjdk/openjdk11-openj9:alpine-slim

# Copy Gradle file
COPY *.gradle /app/

# Copy sources
COPY src /app/src

# Copy Gradle resources
COPY gradle /app/gradle
COPY gradlew /app/gradlew

WORKDIR /app

# Test project
RUN ./gradlew test

# Expose port
EXPOSE 8080

# Build & Run project
CMD ./gradlew appRun

0 comments on commit aede4f1

Please sign in to comment.