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

Created Docker image for P2P #224

Merged
merged 9 commits into from
Aug 2, 2024
Merged

Created Docker image for P2P #224

merged 9 commits into from
Aug 2, 2024

Conversation

adrienne-deriv
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Jul 30, 2024

Pull Request Test Coverage Report for Build 10209150191

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 85.603%

Totals Coverage Status
Change from base Build 10197504558: 0.0%
Covered Lines: 5619
Relevant Lines: 6107

💛 - Coveralls

@@ -107,5 +107,8 @@
"typescript": "^5.2.2",
"vite-plugin-html-config": "^1.0.11",
"vite-plugin-sass": "^0.1.0"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.9.5"
Copy link
Contributor

Choose a reason for hiding this comment

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

[Q] why is this needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

may use FROM --platform=linux/xxxxx

Copy link
Contributor Author

@adrienne-deriv adrienne-deriv Aug 1, 2024

Choose a reason for hiding this comment

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

This is needed to support linux/amd64 builds:
Screenshot 2024-08-01 at 8 21 50 PM

Tried specifying platform as linux/arm64, it still needs the additional dependencies for @rollup/rollup-linux-arm64-gnu:
Screenshot 2024-08-01 at 8 29 43 PM


WORKDIR /app

ENV HUSKY=0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Disable husky precheck

ENV NODE_ENV=production
RUN npm run build

FROM --platform=$BUILDPLATFORM node:lts-alpine3.20
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change to multi-stage build to use node:lts for production environment

Copy link

github-actions bot commented Aug 2, 2024

Preview Link: https://deploy-docker.p2p-standalone.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

@farrah-deriv farrah-deriv merged commit db7a958 into deriv-com:master Aug 2, 2024
3 checks passed
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.

4 participants