Skip to content

Commit

Permalink
Merge pull request #35 from FRINXio/docker_build
Browse files Browse the repository at this point in the history
Change default user to root
  • Loading branch information
Jozefiel authored May 11, 2024
2 parents be03dde + 18b25ea commit d256d91
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ ARG git_commit=unspecified
LABEL git_commit="${git_commit}"
LABEL org.opencontainers.image.source="https://github.com/FRINXio/yang-schemas"

ARG USER=frinx
ENV HOME /home/$USER
RUN adduser -D $USER --home ${HOME}
USER $USER
WORKDIR $HOME
WORKDIR /home/frinx

COPY ./ ${HOME}/yang-schemas
COPY ./ /home/frinx/yang-schemas
RUN chmod 777 -R /home/frinx/yang-schemas

0 comments on commit d256d91

Please sign in to comment.