updates for bun and docker
update libs
This commit is contained in:
+8
-7
@@ -6,10 +6,9 @@ COPY package*.json bun.lock ./
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
RUN bun run bun:build
|
||||
RUN bun run build
|
||||
|
||||
# only prod dependencies
|
||||
RUN rm -rf node_modules && bun install --frozen-lockfile --production
|
||||
RUN bunx tsc -p tsconfig.build.json
|
||||
|
||||
# ---- runtime ----
|
||||
FROM oven/bun:alpine AS runner
|
||||
@@ -18,8 +17,10 @@ WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV IS_DOCKER=true
|
||||
|
||||
COPY --from=builder /app/package*.json ./
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY package.json bun.lock ./
|
||||
RUN bun install --frozen-lockfile --production
|
||||
|
||||
CMD [ "node", "dist/index.js" ]
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/assets ./assets
|
||||
|
||||
CMD [ "bun", "dist/index.js" ]
|
||||
Reference in New Issue
Block a user