Skip to content

Commit

Permalink
fix: create new user in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector committed Jul 30, 2024
1 parent ed6fafb commit caad793
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ workflows:
only:
- main
platform: linux/amd64
tag: 1.6.1-amd64
tag: 1.6.1
4 changes: 4 additions & 0 deletions docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ RUN rsync -avm --include='pyprojects/**/dist/*.whl' -f 'hide,! */' /repo/./ /dis

FROM secretflow/secretflow-anolis8:1.6.1b0

RUN useradd -m secretnote

COPY --from=build /dist /dist

RUN pip install /dist/pyprojects/secretnote/dist/*.whl
Expand All @@ -46,6 +48,8 @@ COPY ./docker/app/root/ /root/

RUN mkdir workspace

RUN chown -R secretnote:secretnote /root

ENV SELF_PARTY=alice
ENV ALL_PARTIES=alice,bob

Expand Down

0 comments on commit caad793

Please sign in to comment.