Catalyst / admin/Bid-Sentinel 14.8 GB / 57.8 GB 40.0 GB free
Help Sign in

admin / Bid-Sentinel

public

Bid Scrape and Tracking Application with AI Capability

Code Issues Pull requests Pipelines Packages Security Insights Wiki Settings
Bid-Sentinel / bid-sentinel-v2 / backend / Dockerfile 868 B · main
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Base image pulled via the Docker Hub mirror (mirror.gcr.io) to avoid
# registry-1.docker.io timeouts. Revert to `python:3.12-slim` if pulling
# direct from Docker Hub works in your environment.
FROM mirror.gcr.io/library/python:3.12-slim

# Prevents Python from writing .pyc files and buffering stdout/stderr.
ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1

WORKDIR /app

# System deps (kept minimal). build-essential is occasionally needed by wheels.
RUN apt-get update \
    && apt-get install -y --no-install-recommends curl \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip \
    && pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8000

# entrypoint.sh waits for the DB, creates tables, seeds the admin, then launches uvicorn.
RUN chmod +x ./entrypoint.sh
CMD ["./entrypoint.sh"]