Move NPM build step to Dockerfile #136
justinmayer
started this conversation in
Ideas
Replies: 1 comment
-
Oh that's cool, I didn't know that as I don't use Docker myself. It looks like it's just a matter of moving some of the commands in the entrypoint to the Dockerfile. Thanks for flagging this 🫡 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, there is an NPM build step for the client that takes place in the Docker entrypoint. This means that every time the container is (re-)created, there is a lengthy delay of several minutes while waiting for this build process to complete.
In the vast majority of projects I have seen, this build step is located in the Dockerfile and occurs during the Docker image build process, making for lightning-fast deploys when compared to building during container instantiation.
Could we consider moving this NPM build step to the Dockerfile?
Beta Was this translation helpful? Give feedback.
All reactions