Current example of Dockerfile in docs is actually a really bad approach. According to it the built image includes the whole Fresh app source code which is not very ideal in production environments.
I'm suggesting providing a better example with multiple stages: build and runtime, then copying all the necessary directories that are needed for Fresh to function in the final image.
Current example of Dockerfile in docs is actually a really bad approach. According to it the built image includes the whole Fresh app source code which is not very ideal in production environments.
I'm suggesting providing a better example with multiple stages: build and runtime, then copying all the necessary directories that are needed for Fresh to function in the final image.