ArXivResearchExplorer / Dockerfile
RBJin's picture
Upload 20 files
81cb6e0 verified
raw
history blame contribute delete
509 Bytes
FROM node:18-alpine AS builder
WORKDIR /app
# Copy package files
COPY package.json package-lock.json* ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build the project
RUN npm run build
# Production stage - simple static file server
FROM python:3.11-slim
WORKDIR /app
# Copy built files
COPY --from=builder /app/dist /app/static
# Create a simple server script
RUN pip install flask flask-cors requests
COPY server.py /app/server.py
EXPOSE 7860
CMD ["python", "server.py"]