Initializing the image repository.

This commit is contained in:
Pat Garrity 2024-03-16 15:00:45 -05:00
commit a0def97fe9
Signed by: pfm
GPG key ID: 5CA5D21BAB7F3A76
2 changed files with 24 additions and 0 deletions

20
Dockerfile Normal file
View 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
View file

@ -0,0 +1,4 @@
# ci-scala
Produces a container image suitable for Scala builds within the Garrity Software
ecosystem.