podcast-mindmap/Dockerfile

20 lines
445 B
Docker
Raw Permalink Normal View History

FROM python:3.12-slim
WORKDIR /app
# Install dependencies
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy backend code
COPY backend/ .
# Copy webapp as static files
COPY webapp/index.html webapp/d3.v7.min.js /static/
COPY webapp/manifest.json webapp/sw.js /static/
COPY webapp/icon-192.png webapp/icon-512.png /static/
EXPOSE 8000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]