-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
feat: made the Docker file Multistaged #3237
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3237--asyncapi-website.netlify.app/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some comments
ENV NODE_ENV=development | ||
|
||
CMD ["npm", "run", "dev"] | ||
|
||
# Build command -> docker build -f Dockerfile.dev --build-arg NODE_ENV=development -t app-dev . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this line of code signify?
@@ -123,14 +123,25 @@ Generated files of the storybook go to the `storybook-static` folder. | |||
After cloning repository to your local, perform the following steps from the root of the repository. | |||
|
|||
#### Steps: | |||
1. Build the Docker image: | |||
1. Development Setup with Docker: | |||
1. Build the Docker image: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not rendering in a proper way
Check the preview in online md file convertor
@@ -0,0 +1,31 @@ | |||
FROM node:18-alpine AS build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide the link for this code file from where you have taken inspiration
Description
The existing Dockerfile was good for development environment. But in order to build it fast for production environment I made 2 files Dockerfile.dev and Dockerfile.prod .
The production file is taking nearly half the time of development file to build.
I also updated the readme.md file.
Resolves #3223