Skip to content

Commit

Permalink
fix deps on worker dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
radityaharya authored May 2, 2024
1 parent ab8bdbd commit d1c4c03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/workflow/Workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Utility from "./Utility";

import { Logger } from "../log";

import { WorkflowObjectSchema } from "~/schemas";
import { WorkflowObjectSchema } from "@schema";

const log = new Logger("workflow");

Expand Down
3 changes: 2 additions & 1 deletion worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ WORKDIR /app
ENV NODE_ENV="production"

FROM base as deps
RUN bun add postgres radash bullmq drizzle-orm ioredis spotify-web-api-node @t3-oss/env-nextjs
RUN bun add postgres radash bullmq drizzle-orm ioredis spotify-web-api-node @t3-oss/env-nextjs lodash

FROM base as build
COPY --from=deps /app/node_modules ./node_modules
COPY worker/ ./worker
COPY src/lib ./src/lib
COPY src/server ./src/server
COPY src/env.js ./src/env.js
COPY src/schemas.ts ./src/schemas.ts
COPY drizzle.config.ts ./
COPY tsconfig.json ./
RUN bun build --target bun --compile --minify --sourcemap --outfile flowify-worker ./worker/worker.ts
Expand Down

0 comments on commit d1c4c03

Please sign in to comment.