Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkles-Laurel committed Sep 23, 2024
0 parents commit 81171d9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use an Alpine-based image with OpenJDK
FROM alpine:3.20

# Set the maintainer
LABEL maintainer="[email protected]"

# Install dependencies: bash, curl, and git (git is required for SBT)
RUN apk update && apk upgrade && \
apk add --no-cache bash curl git openjdk21 && \
# Download and install SBT
curl -L -o sbt.zip https://github.com/sbt/sbt/releases/download/v1.10.2/sbt-1.10.2.zip && \
unzip sbt.zip && rm sbt.zip && \
chmod +x sbt/bin/sbt && \
mv sbt /usr/local/sbt && \
ln -s /usr/local/sbt/bin/sbt /usr/local/bin/sbt

# Set the working directory
WORKDIR /app

# Copy the project files
COPY . /app

# Run sbt to download dependencies and compile the project
RUN sbt update && sbt compile

# Set the entry point to run the application
CMD ["/bin/sh"]

0 comments on commit 81171d9

Please sign in to comment.