This repository has been archived by the owner on Dec 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Provide documentation how to build and deploy web application in a Docker container #10
Comments
It uses create-react-app there are tutorials but I have made a proof of concept for a freelance interview a while ago. Dockerfile
Push this to e.g. dockerhub.com and in your docker-compose.yml later on
|
hi there @RichardLindhout ! So I've tried (Ubuntu 20.04; Node 14.16.0; npx 7.8.0)
Result:
UPD as the README mentions also the web command
Indeed under "src" folder there is no "App" but "App.tsx". |
It's RUN yarn run web:build instead of RUN yarn run build |
Hmmm try to start it a few times an see if the issue resolves there are some strange issues in create-react-app when you start it for the first time |
it's still same error:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It's not quite clear what is required to build and run the web app produced by this awesome generator tool.
If I follow the quick start tutorial in the README,
yarn web:build
says, there is no such directory.UPD. Replacing the yarn with an up-to-date one helps, still there are many missing dependencies. A two-stage Dockerfile would help a lot.
The text was updated successfully, but these errors were encountered: