You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works fine locally, but when I try to run the app on docker it gives me this error on listen No Socket Received From uWebsockets.js likely due to an invalid host or busy port.
I am running on MacOS (Apple Silicon).
Dockerfile
FROM node:18-alpine
RUN apk add --no-cache git gcompat gettext chromium
WORKDIR /app
RUN npm install --global pnpm
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm run build
CMD ["node", "--experimental-specifier-resolution", "node", "dist/server"]
@kartikk221, I will try. The weird thing is, for example, when I SSH into a Docker container and navigate to hyper-express/node_modules/uwebsockets.js, then create an example app.js, require it, and start listening on port 9001, it works perfectly fine. It also works fine locally as well.
Everything works fine locally, but when I try to run the app on docker it gives me this error on listen
No Socket Received From uWebsockets.js likely due to an invalid host or busy port.
I am running on MacOS (Apple Silicon).
Dockerfile
docker-compose.yml
app.ts (example)
PORT=44030
HOST=host.docker.internal
server.ts (example)
package.json (Example)
tsconfig.json
The text was updated successfully, but these errors were encountered: