Files
hosted-gateway/Dockerfile
2026-05-20 15:08:45 +03:00

24 lines
460 B
Docker

FROM oven/bun:1.2-alpine
WORKDIR /app
# Install dependencies
COPY package.json bun.lock* ./
RUN bun install --frozen-lockfile 2>/dev/null || bun install
# Generate Prisma client
COPY prisma ./prisma
RUN bunx prisma generate
# Copy source (ARG busts cache on code changes)
ARG CACHE_BUST=1
COPY . .
ARG COMMIT_SHA
ENV COMMIT_SHA=$COMMIT_SHA
EXPOSE 8080
# Default command; docker-compose overrides for the worker process.
CMD ["bun", "run", "src/api.ts"]