Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx committed Apr 17, 2024
1 parent ab90faf commit 17092aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/gh-actions-docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@ COPY app ./app

RUN cabal install --overwrite-policy=always

ARG USERNAME=gh-actions-docs
ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID $USERNAME
RUN chown -R $USERNAME .
USER $USERNAME

ENTRYPOINT ["gh-actions-docs"]
2 changes: 1 addition & 1 deletion .github/gh-actions-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If this parameter is missing, the "Permissions" section will not be generated.

```bash
docker build . -t gh-actions-docs:latest
docker run -v $(pwd):/app gh-actions-docs:latest
docker run -v $(pwd):/opt/app gh-actions-docs:latest
```

### Local
Expand Down

0 comments on commit 17092aa

Please sign in to comment.