init
This commit is contained in:
commit
c54e888458
67 files changed
+5933
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
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"]
|
||||
Reference in new issue
Block a user