attempt fix: trpc routes not found
This commit is contained in:
+16
-11
@@ -6,18 +6,23 @@ RUN corepack enable
|
||||
COPY package.json pnpm-lock.yaml /app/
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS prod-deps
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
|
||||
|
||||
# install dev dependencies which are needed for building, such as typescript:
|
||||
FROM base AS build
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
COPY tsconfig.json /app/
|
||||
COPY src /app/src
|
||||
RUN pnpm run build
|
||||
CMD [ "pnpm", "tsx", "src/index.ts" ]
|
||||
|
||||
FROM base
|
||||
COPY --from=prod-deps /app/node_modules /app/node_modules
|
||||
COPY --from=build /app/dist /app/dist
|
||||
WORKDIR /app/dist
|
||||
CMD [ "node", "index.js" ]
|
||||
# FROM base AS prod-deps
|
||||
# RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
|
||||
|
||||
# # install dev dependencies which are needed for building, such as typescript:
|
||||
# FROM base AS build
|
||||
# RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
# COPY tsconfig.json /app/
|
||||
# COPY src /app/src
|
||||
# RUN pnpm run build
|
||||
|
||||
# FROM base
|
||||
# COPY --from=prod-deps /app/node_modules /app/node_modules
|
||||
# COPY --from=build /app/dist /app/dist
|
||||
# WORKDIR /app/dist
|
||||
# CMD [ "node", "index.js" ]
|
||||
Reference in New Issue
Block a user