Compare commits
2 Commits
main
...
9a33be1f25
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a33be1f25 | |||
| 01dd52bf58 |
@@ -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"]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
services:
|
||||
marketplace-scraper:
|
||||
ca-marketplace-scraper:
|
||||
build: .
|
||||
ports:
|
||||
- "4005:4005"
|
||||
@@ -13,3 +13,7 @@ services:
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
internal:
|
||||
driver: bridge
|
||||
name: ca-marketplace-scraper-network
|
||||
|
||||
Reference in New Issue
Block a user