theghostcmd commited on
Commit
26d036c
·
verified ·
1 Parent(s): 16354e7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -6
Dockerfile CHANGED
@@ -2,18 +2,21 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Copy requirements first for better caching
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Copy the inference script
10
- COPY inference.py .
11
 
12
- # Set environment variables (defaults, but will be overridden by runtime)
13
  ENV API_BASE_URL=""
14
- ENV MODEL_NAME=""
15
  ENV HF_TOKEN=""
 
 
16
 
17
  EXPOSE 7860
18
 
19
- CMD ["python", "inference.py"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Copy requirements and install
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Copy the rest of the application
10
+ COPY . .
11
 
12
+ # Environment variables (as required by hackathon)
13
  ENV API_BASE_URL=""
14
+ ENV MODEL_NAME="MayOne-Security-Framework"
15
  ENV HF_TOKEN=""
16
+ # Optional for Docker image
17
+ ENV LOCAL_IMAGE_NAME=""
18
 
19
  EXPOSE 7860
20
 
21
+ # Run the FastAPI server (entrypoint defined in openenv.yaml)
22
+ CMD ["python", "-m", "server.app"]