Skip to content

Commit

Permalink
make start runnable for user
Browse files Browse the repository at this point in the history
  • Loading branch information
bmappi committed Aug 13, 2024
1 parent a6730eb commit 009846e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FROM alpine:3.20
COPY --from=builder /vernemq/_build/default/rel /

RUN apk --no-cache --update --available upgrade && \
apk add --no-cache ncurses-libs openssl libstdc++ jq curl bash snappy-dev && \
apk add --no-cache ncurses-libs openssl libstdc++ jq curl bash snappy-dev nano && \
addgroup --gid 10000 vernemq && \
adduser --uid 10000 -H -D -G vernemq -h /vernemq vernemq && \
install -d -o vernemq -g vernemq /vernemq
Expand Down Expand Up @@ -52,4 +52,7 @@ VOLUME ["/vernemq/log", "/vernemq/data", "/vernemq/etc"]
HEALTHCHECK CMD vernemq ping | grep -q pong

USER vernemq

RUN chmod +x /usr/sbin/start_vernemq

CMD ["start_vernemq"]

0 comments on commit 009846e

Please sign in to comment.