fix: add target to a bun build command
This commit is contained in:
1 parent
3863d3139e
commit
7da6408d7a
1 file changed
+2
-2
+2
-2
@@ -15,7 +15,7 @@ COPY src ./src
|
||||
COPY tsconfig.json ./
|
||||
|
||||
# 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
|
||||
FROM oven/bun:latest AS runtime
|
||||
@@ -29,4 +29,4 @@ COPY --from=base /app/dist/ ./
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the application
|
||||
CMD ["bun", "index.js"]
|
||||
CMD ["bun", "index.js"]
|
||||
Reference in new issue
Block a user