Skip to content

Commit

Permalink
Docker: Set user as owner to projecct directory, and docker run.
Browse files Browse the repository at this point in the history
  • Loading branch information
realazthat committed Jul 11, 2024
1 parent 26f4d6b commit 797e03f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/README.remotified.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ docker run --rm --tty my-mdreftidy-image --help

# /data in the docker image is the working directory, so paths are simpler.
docker run --rm --tty \
-u "$(id -u):$(id -g)" \
-v "${PWD}:/data" \
my-mdreftidy-image \
mdreftidy/examples/EXAMPLE.md \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apt-get -y update && apt-get -y --no-install-recommends install bash && \
chown -R user:user /mdreftidy /home/user/.local && \
chmod -R a+wrX /mdreftidy

COPY . /mdreftidy
COPY --chown=user:user . /mdreftidy

USER user
WORKDIR /mdreftidy
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ docker run --rm --tty my-mdreftidy-image --help

# /data in the docker image is the working directory, so paths are simpler.
docker run --rm --tty \
-u "$(id -u):$(id -g)" \
-v "${PWD}:/data" \
my-mdreftidy-image \
mdreftidy/examples/EXAMPLE.md \
Expand Down
1 change: 1 addition & 0 deletions mdreftidy/examples/local-docker-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ docker run --rm --tty my-mdreftidy-image --help

# /data in the docker image is the working directory, so paths are simpler.
docker run --rm --tty \
-u "$(id -u):$(id -g)" \
-v "${PWD}:/data" \
my-mdreftidy-image \
mdreftidy/examples/EXAMPLE.md \
Expand Down

0 comments on commit 797e03f

Please sign in to comment.