Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,22 @@ COPY --from=build /etc/orchestrator.conf.json /etc/orchestrator.conf.json
WORKDIR /usr/local/orchestrator
ADD docker/entrypoint.sh /entrypoint.sh
CMD /entrypoint.sh

ENV USER=docker
ENV UID=1000
ENV GID=1000

RUN addgroup -g $GID $USER
RUN adduser \
--disabled-password \
--gecos "" \
--home /usr/local/orchestrator \
--ingroup "$USER" \
--no-create-home \
--uid "$UID" \
"$USER"

RUN mkdir -p /app/data && chown -R docker:docker /app \
&& chown -R docker:docker /etc/orchestrator.conf.json

USER docker