forked from dirkriehle/wahlzeit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ddd6f8
commit aede4f1
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |