Updating the image to perform some cleanup.

This commit is contained in:
Pat Garrity 2024-03-23 23:04:33 -05:00
parent 8c8f97a5c4
commit b86d592cf6
Signed by: pfm
GPG key ID: 5CA5D21BAB7F3A76

View file

@ -5,21 +5,16 @@ ENV SCALA_VERSION ${SCALA_VERSION:-3.4.0}
ARG SBT_VERSION
ENV SBT_VERSION ${SBT_VERSION:-1.9.9}
# git is required for checkout
# git and node are required for checkout
# python3 is required for pre-commit
# node is required for Forgejo checkout
#RUN apk add curl bash git docker python3 py3-pip nodejs npm
# docker is required for certain DinD cases
RUN apt-get update
RUN apt-get install -y curl git docker python3 python3-pip nodejs
# On Alpine, must include --break-system-packages
RUN pip3 install pre-commit #--break-system-packages
RUN pip3 install pre-commit
# 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
RUN groupadd -g 1111 -r builder
RUN useradd -u 1111 -m -g 1111 -r builder
RUN useradd -u 1111 -m -g 1111 -r -s /bin/bash builder
# Switch to the build user. Everything else is installed at this level.
USER builder