I have been trying for days, but I can never connect to the container, the port is activated, everything is correct, but when I try to access localhost:3000 it does not connect 😿, any ideas?
FROM node:14
# Create app directory
WORKDIR /usr/src/catidu-api
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY . .
RUN npm install -g serverless@2.68.0
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
EXPOSE 3000
CMD [ "npm","start" ]
I have been trying for days, but I can never connect to the container, the port is activated, everything is correct, but when I try to access localhost:3000 it does not connect 😿, any ideas?
can u share your code?
Sure, thx.
Dockerfile
docker-compose.yml
.env
I've to say this project use serverless, maybe that's what's causing the error. I don't know, I appreciate any suggestion.