This commit is contained in:
Vijay Soni 2024-11-16 10:44:58 -08:00 committed by GitHub
commit 751230654f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,11 +14,19 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
RUN pnpm deploy --filter=@imput/cobalt-api --prod /prod/api
FROM base AS frontend
WORKDIR /app/web
COPY web /app/web
RUN pnpm install --frozen-lockfile
RUN pnpm run build
FROM base AS api
WORKDIR /app
COPY --from=build /prod/api /app
COPY --from=build /app/.git /app/.git
COPY --from=frontend /app/web/build /app/public
EXPOSE 9000
CMD [ "node", "src/cobalt" ]