Skip to content

Commit

Permalink
fix: worker package
Browse files Browse the repository at this point in the history
  • Loading branch information
radityaharya committed Aug 4, 2024
1 parent 8c8f334 commit eda2690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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 lodash cron-parser
RUN bun add postgres radash bullmq drizzle-orm ioredis spotify-web-api-node @t3-oss/env-nextjs lodash cron-parser @spotify/web-api-ts-sdk

FROM base as build
COPY --from=deps /app/node_modules ./node_modules
Expand All @@ -14,7 +14,7 @@ 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
RUN bun build --target bun --compile --minify --smol --sourcemap --outfile flowify-worker ./worker/worker.ts

FROM oven/bun:1-alpine as release
COPY --from=build /app/flowify-worker ./
Expand Down

0 comments on commit eda2690

Please sign in to comment.