newapi / Dockerfile
Philips656's picture
Update Dockerfile
92117a1 verified
raw
history blame
298 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install dependencies
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
RUN pip install flask requests mysql-connector-python
# Copy ALL files (shield.py AND index.html)
COPY . .
EXPOSE 7860
CMD ["python3", "shield.py"]