afaceuser09 commited on
Commit
e911fb7
·
verified ·
1 Parent(s): 23408b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -8
Dockerfile CHANGED
@@ -1,23 +1,27 @@
1
  FROM python:3.9-slim
2
 
3
- # Set up system dependencies
4
- RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
 
 
5
 
6
- # Set up Hugging Face runtime sandbox environment configurations
7
  RUN useradd -m -u 1000 user
8
  USER user
 
9
  ENV PATH="/home/user/.local/bin:$PATH"
 
10
  WORKDIR /app
11
 
12
- # Copy and install python dependencies
13
  COPY --chown=user ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
- # Copy your application files into place
17
  COPY --chown=user . /app
18
 
19
- # Initialize static asset layout directory frameworks
20
  RUN mkdir -p /app/static
21
 
22
- # Force port exposition explicitly targeted for Hugging Face standard requirements
23
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.9-slim
2
 
3
+ # System dependencies
4
+ RUN apt-get update && \
5
+ apt-get install -y git && \
6
+ rm -rf /var/lib/apt/lists/*
7
 
8
+ # Hugging Face runtime user
9
  RUN useradd -m -u 1000 user
10
  USER user
11
+
12
  ENV PATH="/home/user/.local/bin:$PATH"
13
+
14
  WORKDIR /app
15
 
16
+ # Install Python dependencies
17
  COPY --chown=user ./requirements.txt requirements.txt
18
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
19
 
20
+ # Copy application
21
  COPY --chown=user . /app
22
 
23
+ # Static assets
24
  RUN mkdir -p /app/static
25
 
26
+ # Start Infinity GRM
27
+ CMD ["uvicorn", "search_pipeline:app", "--host", "0.0.0.0", "--port", "7860"]