FROM oven/bun:1.3.13-alpine

WORKDIR /app
COPY package.json bun.lock ./
COPY scripts/fake-responses-provider-service.ts scripts/fake-responses-provider-service.ts
COPY scripts/src/fake-responses-provider-service.ts scripts/src/fake-responses-provider-service.ts

ENV NODE_ENV=production \
    LISTEN_HOST=0.0.0.0 \
    PORT=8080 \
    FAKE_RESPONSES_MODEL_ID=fake-echo

EXPOSE 8080
CMD ["bun", "scripts/fake-responses-provider-service.ts"]
