Wrangler docker
Anyone knows how to dockerize the cloudflare worker app??? This is working but nothing shows up on localhost:8787
FROM node:20
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npx prisma generate
COPY . ./
ENV WRANGLER_SEND_METRICS=false
EXPOSE 8787
CMD [ "npm", "start" ]
docker run -p 8787:8787 -t new-image
2 Replies
My guess is wrangler is binding to the localhost IP. Try adding
--ip 0.0.0.0
to your start command.Thanks, it is working now. 🎈