Skip to content

Added Rackt example & tweaked Dockerfile #50

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

Merged
merged 1 commit into from
Sep 2, 2023

Conversation

leiDnedyA
Copy link
Contributor

@leiDnedyA leiDnedyA commented Aug 30, 2023

Response to #34.

Here's a demo of my branch running from a docker container:
demo video

To get React to import correctly, I had to tweak the Rackt module itself, as well as the Dockerfile. Here's all of the stuff that I did:

  • Added <script> tag imports from the react and react-dom CDN links to the iFrame's index.html
  • Forked and tweaked Rackt to use the global import from the script tag instead of an es6 import statement
  • Set up the Dockerfile to clone my Rackt fork, checkout to the cdn-import branch, and install the package via raco pkg install
  • Added a .dockerignore file (works exactly like .gitignore), so that build files will be generated via docker build, rather than being copied from the local build.

@vishesh vishesh merged commit 16b7e36 into racketscript:master Sep 2, 2023
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