Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

ci: updating dockerfile

Andrejb4dfef55faa9
diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile
index de088a107..ee5e2869c 100644
--- a/apps/api/Dockerfile
+++ b/apps/api/Dockerfile
@@ -12,18 +12,19 @@ FROM base AS all-deps
RUN bun install
FROM base AS prod-deps
-RUN bun install
+RUN bun install --production
FROM all-deps AS build
ENV NODE_ENV=production
-COPY ./apps/api ./apps/api
+COPY packages/typescript-config ./packages/typescript-config
+COPY apps/api ./apps/api
FROM oven/bun:alpine AS runtime
WORKDIR /app
COPY --from=prod-deps /app/node_modules ./node_modules
-
+COPY --from=build /app/packages ./packages
COPY --from=build /app/apps/api ./apps/api
ENV NODE_ENV=production
@@ -32,4 +33,4 @@ WORKDIR /app/apps/api
EXPOSE 1337
-CMD ["bun", "run", "src/index.ts"]
+CMD ["bun", "run", "src/index.ts"]
\ No newline at end of file