Skip to content

Commit

Permalink
Simplify file ownership in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Feb 10, 2025
1 parent 7211108 commit e65cf6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ ENV HOME="/home/zebra"
ENV CARGO_HOME="${HOME}/.cargo/"

RUN adduser --system --gid ${GID} --uid ${UID} --home ${HOME} ${USER}
RUN chown -R ${UID}:${GID} ${HOME}

WORKDIR ${HOME}

Expand Down Expand Up @@ -120,7 +119,9 @@ ENV ZEBRA_CACHE_DIR="${HOME}/.cache/zebra"
RUN mkdir -p ${ZEBRA_CACHE_DIR} && chown -R ${UID}:${GID} ${ZEBRA_CACHE_DIR}

COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh
COPY ./ ./
COPY ./ ${HOME}

RUN chown -R ${UID}:${GID} ${HOME}

USER $USER

Expand Down

0 comments on commit e65cf6b

Please sign in to comment.