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

Fix production docker image #4087

Merged
merged 1 commit into from Aug 10, 2023
Merged

Fix production docker image #4087

merged 1 commit into from Aug 10, 2023

Conversation

eikhr
Copy link
Member

@eikhr eikhr commented Aug 9, 2023

Description

Soo, yarn workspaces creates a symlink from lego-bricks to node-modules. This doesn't work if we don't copy the actual files into the docker image.

I don't love this solution, but I couldn't find a way to make yarn actually copy the files. I think perhaps a good solution would be to just build lego-bricks into the bundle using webpack, but it wasn't suuper simple, so I might do that later.

Result

It works now:)

Testing

  • I have thoroughly tested my changes.

Built the image locally, and ran it successfully locally

@eikhr eikhr added priority:high Pull requests that have high priority, and should therefore be prioritized bug-fix Pull requests that fix a bug labels Aug 9, 2023
@eikhr eikhr requested a review from LudvigHz August 9, 2023 17:11
@github-actions github-actions bot added the review-needed Pull requests that need review label Aug 9, 2023
Copy link
Member

@LudvigHz LudvigHz left a comment

Choose a reason for hiding this comment

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

LGTM

I don't see anything wrong with this solution tbh.

@eikhr eikhr merged commit e49195f into master Aug 10, 2023
4 checks passed
@eikhr eikhr deleted the fix-docker branch August 10, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Pull requests that fix a bug priority:high Pull requests that have high priority, and should therefore be prioritized review-needed Pull requests that need review
Projects
None yet
3 participants