Skip to content
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

Added Dockerfile and docker-compose for live reload during development #20

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

this-Aditya
Copy link
Member

No description provided.

Copy link
Member

@yatharthranjan yatharthranjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, a minor suggestion

volumes:
- .:/app
environment:
- PORT=3000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps set this on the run command in Dockerfile, so the app works as expected even when not running through docker-compose.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Yatharth,

I have moved the environment variable settings to the Dockerfile, but I think we still can’t start it directly from the Dockerfile. It also needs to reference the host directory, and I am just copying the package.json into the Dockerfile. Everything else is used in bind mounts.

Dockerfile.dev Outdated Show resolved Hide resolved
this-Aditya and others added 2 commits September 3, 2024 17:03
Co-authored-by: Yatharth Ranjan <yatharthranjan89@gmail.com>
Copy link
Member

@yatharthranjan yatharthranjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@this-Aditya this-Aditya merged commit 632d677 into main Sep 3, 2024
1 check failed
@this-Aditya this-Aditya deleted the live-reload branch September 3, 2024 14:41
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.

3 participants