Gabriel M.
Gabriel M.
Explore posts from servers
RRailway
Created by Gabriel M. on 8/24/2024 in #✋|help
[ERROR] Deploy Adonis V6
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"]
3 replies