aethex-forge/Dockerfile
AeThex 2ae331f9fe fix: remove listGpus import/route breaking production build
listGpus was removed from session.ts when migrating to RunPod Serverless,
but server/index.ts still imported and registered it, failing the esbuild.
Also stages stream API, StreamUpgrade page, and Dockerfile/compose fixes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 16:42:44 +00:00

34 lines
836 B
Docker

FROM node:22-alpine
WORKDIR /app
# Copy package files
COPY package.json package-lock.json* pnpm-lock.yaml* npm-shrinkwrap.json* ./
# Install dependencies
RUN if [ -f pnpm-lock.yaml ]; then npm install -g pnpm && pnpm install --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci --legacy-peer-deps; \
else npm install --legacy-peer-deps; fi
# Copy source code
COPY . .
# Build-time env vars (VITE_* are baked into the bundle at build time)
ARG VITE_SUPABASE_URL
ARG VITE_SUPABASE_ANON_KEY
ARG VITE_AUTHENTIK_PROVIDER
ENV VITE_SUPABASE_URL=$VITE_SUPABASE_URL
ENV VITE_SUPABASE_ANON_KEY=$VITE_SUPABASE_ANON_KEY
ENV VITE_AUTHENTIK_PROVIDER=$VITE_AUTHENTIK_PROVIDER
# Build everything
RUN npm run build
# Set environment
ENV NODE_ENV=production
ENV PORT=3000
# Expose port
EXPOSE 3000
CMD ["npm", "run", "start"]