DCM_Viewer / Dockerfile
Pushpak21's picture
Upload folder using huggingface_hub
5c8d4fd verified
raw
history blame contribute delete
410 Bytes
# Dockerfile
FROM python:3.11
# Install backend dependencies
COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt
# Copy backend and frontend
COPY app.py /app/app.py
COPY index.html /app/index.html
# Add CORS and serve index.html statically
RUN mkdir -p /app/static
# Run both backend (FastAPI) and static file server
CMD uvicorn app:app --host 0.0.0.0 --port 7860