rename lol

This commit is contained in:
hexlocation 2024-11-18 11:58:54 +01:00
parent 6d2f85f981
commit ac09290b93
4 changed files with 28 additions and 47 deletions

View file

@ -40,11 +40,11 @@ RUN deluser node
# We want to run disseminate as a non-root user.
ARG UID=1000
ARG GID=1000
RUN addgroup -g $GID disseminate && \
adduser --home /app --uid $UID -G disseminate --disabled-password disseminate
RUN addgroup -g $GID jabe && \
adduser --home /app --uid $UID -G jabe --disabled-password jabe
# Give our non-root user access to /app
RUN chown -R disseminate:disseminate /app
RUN chown -R jabe:jabe /app
# Installing bash, mostly for debugging.
RUN apk add bash
@ -53,7 +53,7 @@ RUN apk add bash
COPY --chown=$UID:$GID --from=compiled /tmp/build/ /app
RUN chown -R $UID:$GID /app
# Switching to user.
USER disseminate
USER jabe
# Installing the dependencies.
RUN yarn install --production