Skip to content

Commit

Permalink
add docker user
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnazmulkarim committed Aug 2, 2023
1 parent 8fa0880 commit a719e90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LABEL COMMIT_HASH ${COMMIT_HASH}
ENV COMMIT_HASH ${COMMIT_HASH}

RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
RUN groupadd -r cqfruler && useradd -r -g cqfruler cqfruler
USER cqfruler
WORKDIR /home/cqfruler

RUN mkdir server
RUN mkdir plugin
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ The public sandbox is not persistent, has no authentication, and is regularly re

### Docker

The easiest way to get started with the cqf-ruler is to pull and run the docker image

The easiest way to get started with the cqf-ruler is to pull and run the docker image.
For avoiding to run docker container by default root user permission, the container from this image will run with a user named `cqfruler`
```bash
docker pull alphora/cqf-ruler
docker run -p 8080:8080 alphora/cqf-ruler
Expand Down

0 comments on commit a719e90

Please sign in to comment.