Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkles-Laurel authored Sep 23, 2024
1 parent 81171d9 commit 8b09d65
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
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"]
```

0 comments on commit 8b09d65

Please sign in to comment.