Skip to content

Commit

Permalink
Cleanup a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
cyxou committed Feb 10, 2024
1 parent 7d78899 commit 1730edb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ build:
FROM ${ARGOCD_BASE_IMAGE}:${ARGOCD_TAG}
LABEL org.opencontainers.image.source="https://github.com/librepod/${TARGET_DOCKER_REGISTRY}"

# Switch to root for the ability to perform install
# Switch to root to install stuff
USER root

RUN apt-get update

# Setup non-root user
WORKDIR /home/argocd

RUN apt-get update && apt-get --no-install-recommends --yes install \
Expand All @@ -31,7 +28,6 @@ build:
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY +bun/bun /usr/local/bin/bun
RUN bun --version

# Switch back to non-root user
USER 999
Expand Down

0 comments on commit 1730edb

Please sign in to comment.