Compare commits

...

2 Commits

Author SHA1 Message Date
9a33be1f25 fix: add target to a bun build command 2025-10-03 09:02:39 -04:00
01dd52bf58 chore: update docker compose 2025-10-03 08:59:13 -04:00
2 changed files with 7 additions and 3 deletions

View File

@@ -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"]

View File

@@ -1,5 +1,5 @@
services: services:
marketplace-scraper: ca-marketplace-scraper:
build: . build: .
ports: ports:
- "4005:4005" - "4005:4005"
@@ -13,3 +13,7 @@ services:
retries: 3 retries: 3
start_period: 5s start_period: 5s
restart: unless-stopped restart: unless-stopped
networks:
internal:
driver: bridge
name: ca-marketplace-scraper-network