fix: remove nested .git folders, re-add as normal directories

This commit is contained in:
2026-03-22 17:50:47 -05:00
parent f55c7e47c9
commit 6b7eec67b8
1870 changed files with 4170168 additions and 3 deletions
+36
View File
@@ -0,0 +1,36 @@
FROM oven/bun:latest AS base
WORKDIR /app
# Install dependencies
COPY package.json bun.lock ./
COPY patches ./patches
RUN bun install --frozen-lockfile
# Build the SvelteKit app with adapter-node
COPY . .
ARG PUBLIC_API_URL=https://opt-api.osdci.net
ENV PUBLIC_API_URL=$PUBLIC_API_URL
RUN bun run prepare
RUN bun run build:server
# Bundle the server into a single file with all dependencies
RUN bun build build/index.js --target node --outdir build-bundled --minify
# Production image
FROM node:22-alpine AS production
WORKDIR /app
COPY --from=base /app/build-bundled/index.js ./index.js
COPY --from=base /app/build/client ./client
ENV NODE_ENV=production
ENV PORT=3000
ENV ORIGIN=https://optima.osdci.net
EXPOSE 3000
CMD ["node", "index.js"]