Initializing the image repository.
This commit is contained in:
commit
a0def97fe9
2 changed files with 24 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM docker.io/library/eclipse-temurin:21-jdk-alpine
|
||||
|
||||
RUN apk add curl bash git docker python3 py3-pip
|
||||
RUN pip3 install pre-commit --break-system-packages
|
||||
|
||||
# Create the user - builds do not run as root.
|
||||
RUN addgroup -S -g 1000 builder
|
||||
RUN adduser -S -h /home/builder -s /bin/bash -G builder -u 1000 builder
|
||||
|
||||
# Switch to the build user. Everything else is installed at this level.
|
||||
USER builder
|
||||
WORKDIR /home/builder
|
||||
|
||||
RUN curl -fLo coursier https://github.com/coursier/launchers/raw/master/coursier
|
||||
RUN chmod +x coursier
|
||||
RUN ./coursier setup --yes --apps coursier,sbt-launcher,scalafmt
|
||||
RUN rm ./coursier
|
||||
RUN mkdir -p /home/builder/.local/bin
|
||||
ENV PATH="${PATH}:/home/builder/.local/share/coursier/bin"
|
||||
ENV PATH="${PATH}:/home/builder/.local/bin"
|
4
README.md
Normal file
4
README.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
# ci-scala
|
||||
|
||||
Produces a container image suitable for Scala builds within the Garrity Software
|
||||
ecosystem.
|
Loading…
Add table
Reference in a new issue