I’m trying to run the Adonis.js API in Kubernetes - unfortunately without success.
For my app, I used
.env file i set:
FROM node:lts-alpine WORKDIR . /app COPY package.json ./ COPY yarn.lock ./ RUN yarn install RUN yarn global add @adonisjs/cli nodemon COPY . . EXPOSE 7000 CMD [ "adonis", "serve" ]
I also tried other versions of node images, npm, ports and run commands.
When I start it locally I get:
SERVER STARTED info: serving app on http://0.0.0.0:7000
But I can’t connect to my API. Kubernetes is also not able to run this image. But I’m sure Kubernetes works fine because I have other node-based pods. I’m a bit new in Docker and Kubernetes and I have no idea what is wrong…