Spaces:
Sleeping
Sleeping
File size: 428 Bytes
db833a2 9b4d92d 87d304e 9b4d92d 87d304e db833a2 9b4d92d 87d304e 9b4d92d db833a2 9b4d92d 87d304e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
nginx \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY app.py /app/app.py
COPY nginx.conf /etc/nginx/nginx.conf
COPY start.sh /app/start.sh
RUN pip install --no-cache-dir fastapi uvicorn streamlit pydantic
EXPOSE 7860
RUN chmod +x /app/start.sh
CMD ["/app/start.sh"]
|