[ERROR] Deploy Adonis V6

gabrielmoraespTRIAL

10 months ago

I’m trying to set up my AdonisJS v6 application, but I’m having difficulty. Could someone help me? I believe the issue might be with the Dockerfile.

imported from /app/start/routes.js Error: Cannot find module '/app/start/webhook/index.ts' imported from/app/start/routes.js container event container restart Error: Cannot

Dockerfile

Base stage

FROM node:20 as base

`# All deps stage
FROM base as deps
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile

Production only deps stage

FROM base as production-deps
WORKDIR /
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --production

Build stage

FROM base as build
WORKDIR /app
COPY --from=deps /app/nodemodules /app/nodemodules
COPY . .
RUN yarn build

Production stage

FROM base
ENV NODEENV=production WORKDIR /app COPY --from=production-deps /app/nodemodules /app/node_modules
COPY --from=build /app/build /app
EXPOSE 8080
CMD ["node", "./bin/server.js"]`

0 Replies

gabrielmoraespTRIAL

10 months ago

Project ID: 87283685-2934-4304-9394-aa7e7d4d5181