Skip to content

Commit

Permalink
Merge pull request #347 from network-intelligence/dev
Browse files Browse the repository at this point in the history
Hotfix: Dockerfiles create /usr/local/{share,var}/mercury
  • Loading branch information
davidmcgrew authored and GitHub Enterprise committed Dec 18, 2024
2 parents d009a02 + 70362e6 commit 6e46935
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

RUN addgroup --system mercury && adduser --system --group mercury \
&& mkdir -p /usr/local/share/mercury \
&& mkdir -p /usr/local/var/mercury \
&& chown -R mercury:mercury /usr/local/share/mercury /usr/local/var/mercury/

# Default entrypoint for "docker run" on this image
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ FROM alpine:latest
WORKDIR /root/
COPY --from=0 /usr/local /usr/local
RUN apk add --no-cache libstdc++ gmp
RUN addgroup mercury -S && adduser mercury -G mercury -S && \
chown -R mercury:mercury /usr/local/share/mercury /usr/local/var/mercury/
RUN addgroup mercury -S && adduser mercury -G mercury -S \
&& mkdir -p /usr/local/share/mercury \
&& mkdir -p /usr/local/var/mercury \
&& chown -R mercury:mercury /usr/local/share/mercury /usr/local/var/mercury/

# Default entrypoint for "docker run" on this image
ENTRYPOINT ["/usr/local/bin/mercury"]
Expand Down

0 comments on commit 6e46935

Please sign in to comment.