Skip to content

Commit

Permalink
Docker non-root access for cloud image (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples authored Sep 14, 2022
1 parent f492dc9 commit 6d50147
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloud.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ RUN make install-utils install-ui build-cloud
FROM ${BASE_SERVER_IMAGE} AS ui-server
WORKDIR /home/ui-server

RUN addgroup -g 5000 temporal
RUN adduser -u 5000 -G temporal -D temporal

COPY --from=ui-builder /home/ui-builder/ui-server ./
COPY docker/start-ui-server.sh ./start-ui-server.sh
COPY docker/config_template.yaml ./config/config_template.yaml

RUN chown temporal:temporal /home/ui-server -R

EXPOSE 8080
ENTRYPOINT ["./start-ui-server.sh"]

0 comments on commit 6d50147

Please sign in to comment.