-
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
81171d9
commit 8b09d65
Showing
1 changed file
with
25 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,25 @@ | ||
# scala-on-alpine | ||
An actually decent Scala image based on Alpine that is still huge because of Scala | ||
|
||
# why? | ||
- The OpenJDK images were orphaned. | ||
- The `ibmjava` image is huge due to being based on Ubuntu. (see also [the description of the Alpine image comparing it against Ubuntu](https://hub.docker.com/_/alpine)) | ||
- There is not an image dedicated for building Scala apps | ||
|
||
# how to use | ||
```dockerfile | ||
FROM ghcr.io/sparkles-laurel/scala-on-alpine:0.1.1 | ||
|
||
RUN apk update && apk upgrade | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy the project files | ||
COPY . /app | ||
|
||
# Run sbt to download dependencies and compile the project | ||
RUN sbt --verbose update && sbt --verbose compile | ||
|
||
CMD ["sbt", "run"] | ||
``` |