theghostcmd's picture
Update Dockerfile
26d036c verified
Raw
History Blame Contribute Delete
482 Bytes
FROM python:3.10-slim
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Environment variables (as required by hackathon)
ENV API_BASE_URL=""
ENV MODEL_NAME="MayOne-Security-Framework"
ENV HF_TOKEN=""
# Optional for Docker image
ENV LOCAL_IMAGE_NAME=""
EXPOSE 7860
# Run the FastAPI server (entrypoint defined in openenv.yaml)
CMD ["python", "-m", "server.app"]