initial commit

This commit is contained in:
Vuk Savić
2026-03-16 21:38:49 +01:00
commit d1eeccbefc
21 changed files with 3178 additions and 0 deletions

17
docker/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM oven/bun:1 AS base
WORKDIR /app
COPY package.json bun.lockb* ./
RUN bun install --frozen-lockfile --production
COPY src ./src
FROM oven/bun:1-distroless AS runtime
WORKDIR /app
COPY --from=base /app/node_modules ./node_modules
COPY --from=base /app/src ./src
COPY --from=base /app/package.json ./
VOLUME ["/app/shards", "/app/config"]
ENV PORT=3000
ENV SHARD_DIR=/app/shards
ENV SCHEMA_PATH=/app/config/schema.json
EXPOSE 3000
CMD ["bun", "run", "src/index.ts"]