[ERROR] Deploy Adonis V6
gabrielmoraesp
PROOP

2 years 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/node_modules /app/node_modules

COPY . .

RUN yarn build

Production stage

FROM base

ENV NODE_ENV=production

WORKDIR /app

COPY --from=production-deps /app/node_modules /app/node_modules

COPY --from=build /app/build /app

EXPOSE 8080

CMD ["node", "./bin/server.js"]`

2 Replies

gabrielmoraesp
PROOP

2 years ago

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


joe8
FREE

a year ago

hi Gabriel I have a same issue like you , i don't nkow how i can do to deploy and Adonis js v6 app

if you get solution please tell me more zz9rodes/event_api


Welcome!

Sign in to your Railway account to join the conversation.

Loading...