python-detector-worker/Dockerfile
Siwat Sirichai 252ef468c9
Some checks failed
Build Backend Application and Docker Image / build-docker (push) Failing after 31s
Build Backend Application and Docker Image / deploy-stack (push) Has been skipped
feat: update Dockerfile and requirements for ML dependencies; add base image build workflow
2025-08-10 19:49:24 +07:00

12 lines
No EOL
401 B
Docker

# Use our pre-built base image with ML dependencies
FROM git.siwatsystem.com/adsist-cms/worker-base:latest
# Copy and install application requirements (frequently changing dependencies)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Run the application
CMD ["python3", "-m", "fastapi", "run", "--host", "0.0.0.0", "--port", "8000"]