Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonroot User in Docker Image #139

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Nonroot User in Docker Image #139

merged 2 commits into from
Oct 12, 2023

Conversation

onelapahead
Copy link
Contributor

Aiming to support arbitrary user IDs, or non-root numeric users, for running in clouds like OpenShift.

@nguyer nguyer merged commit a189de9 into hyperledger:main Oct 12, 2023
COPY --from=solidity-build --chown=1001:0 /home/node/contracts /home/node/package*.json ./
RUN npm install --production
WORKDIR /app/contracts
COPY --from=solidity-build --chown=1001:0 /home/node/artifacts/contracts/TokenFactory.sol/TokenFactory.json ./
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize when I reviewed this originally that this moves the location of the compiled contracts in the built filesystem. The FireFly CLI will also need a code change to be able to find these contracts in the new location, or we need to move them back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants