Skip to content

Commit

Permalink
add directories and permissions to enable running on OpenShift
Browse files Browse the repository at this point in the history
  • Loading branch information
rezemble authored and mperham committed Jan 18, 2025
1 parent 295d58f commit 3648e17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ RUN apk add --no-cache redis ca-certificates socat
COPY ./tmp/$TARGETPLATFORM /faktory

RUN mkdir -p /root/.faktory/db
RUN mkdir -p /.faktory/db
RUN mkdir -p /var/lib/faktory/db
RUN mkdir -p /etc/faktory

EXPOSE 7419 7420

RUN chgrp -R 0 /var/lib/faktory && \
chmod -R g=u /var/lib/faktory && \
chgrp -R 0 /.faktory/db && \
chmod -R g=u /.faktory/db && \
chgrp -R 0 /etc/faktory && \
chmod -R g=u /etc/faktory

CMD ["/faktory", "-w", "0.0.0.0:7420", "-b", "0.0.0.0:7419"]

0 comments on commit 3648e17

Please sign in to comment.