fix: add target to a bun build command
This commit is contained in:
@@ -15,7 +15,7 @@ COPY src ./src
|
|||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
|
|
||||||
# Build the application for production
|
# Build the application for production
|
||||||
RUN bun build ./src/index.ts --outdir ./dist --minify
|
RUN bun build ./src/index.ts --outdir ./dist --minify --target=bun
|
||||||
|
|
||||||
# Multi-stage build - runtime stage
|
# Multi-stage build - runtime stage
|
||||||
FROM oven/bun:latest AS runtime
|
FROM oven/bun:latest AS runtime
|
||||||
@@ -29,4 +29,4 @@ COPY --from=base /app/dist/ ./
|
|||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
CMD ["bun", "index.js"]
|
CMD ["bun", "index.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user