-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
2 changed files
with
59 additions
and
52 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
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# Alpine Linux with pre-installed JDK8 (https://hub.docker.com/_/java) | ||
FROM java:openjdk-8-alpine | ||
# Alpine Linux, last versiom | ||
FROM alpine:latest | ||
# Install OpenJDK 11 | ||
RUN apk update; apk add openjdk11 | ||
# Copies everything from 'my-app/' (on the host) to '/my-app/' on the container file system | ||
COPY ./ /my-app/ | ||
# Moves to the /my-app/ directory on the container file system | ||
WORKDIR /my-app/ | ||
# Compiles the to-be-deployed app | ||
RUN ./gradlew build | ||
# Sets some env. var. on the container | ||
ENV USERNAME %*\textit{<your name>}*) | ||
ENV USERNAME %*\textit{<your name>}*) | ||
ENV GRD_OPTS --console=plain | ||
# Run the application by default | ||
CMD ./gradlew run $GRD_OPTS |