| 1 | # syntax=docker/dockerfile:1 |
| 2 | # Built from the repository root, like the other services: |
| 3 | # docker build -f apps/importer/Dockerfile . |
| 4 | |
| 5 | FROM oven/bun:1.3.14-slim |
| 6 | # The importer shells out to git for the clone and the push. |
| 7 | RUN apt-get update \ |
| 8 | && apt-get install -y --no-install-recommends git ca-certificates \ |
| 9 | && rm -rf /var/lib/apt/lists/* |
| 10 | WORKDIR /app |
| 11 | COPY apps/importer/package.json ./ |
| 12 | RUN bun install --production |
| 13 | COPY apps/importer/src ./src |
| 14 | USER bun |
| 15 | ENV PORT=3004 |
| 16 | EXPOSE 3004 |
| 17 | CMD ["bun", "run", "src/index.ts"] |