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

hotreload (--respawn) not working inside docker container #344

Open
CorentinTrt opened this issue Apr 12, 2024 · 0 comments
Open

hotreload (--respawn) not working inside docker container #344

CorentinTrt opened this issue Apr 12, 2024 · 0 comments

Comments

@CorentinTrt
Copy link

Issue description

Hello, i'm trying to run a node dev environment with tsnd. I'm using Docker

The hot reload feature (using --respawn) is not working while running inside the docker container. However, everything's working while running on the host machine

There is a volumes mounted between the host machine and the container and the code is correctly updated inside the docker container (with docker compose)

Here is the command that i run:
"tsnd -r tsconfig-paths/register --env-file=common/environment-variables/development/.env --respawn src/entrypoint.ts"

Here is my Dockerfile:

FROM node:20.11.0
LABEL authors="@hooma"

WORKDIR /srv/authentifier-service

COPY --link . ./

RUN npm install pnpm -g

RUN pnpm install

CMD "pnpm" "run" "dev:run"

Context

OS version (is it docker or host?), ts-node-dev version

  • ts-node-dev version: 2.0.0
  • node version: 20.11.19
  • containerized

Did you try to run with ts-node? NO

Did you try to run with --files option enabled? NO

Did you try to run with --debug option enabled? NO

Do you have a repro example (git repo) with simple steps to reproduce your problem?
I can provide it if necessary but I don't want to commit non working code if possible

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

No branches or pull requests

1 participant