Andr17p commited on
Commit
63e10a7
·
1 Parent(s): 5c2bf91

Refactor Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -4
Dockerfile CHANGED
@@ -3,9 +3,13 @@ FROM python:3.11-slim
3
  WORKDIR /app
4
 
5
  RUN apt-get update && \
6
- apt-get install -y --no-install-recommends git g++ make && \
7
- apt-get clean && \
8
- rm -rf /var/lib/apt/lists/* \
 
 
 
 
9
 
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
@@ -16,4 +20,4 @@ ENV HF_HOME=/tmp/huggingface-cache
16
  ENV TOKENIZERS_PARALLELISM=false
17
 
18
  EXPOSE 7860
19
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001"]
 
3
  WORKDIR /app
4
 
5
  RUN apt-get update && \
6
+ apt-get install -y --no-install-recommends \
7
+ git \
8
+ g++ \
9
+ make \
10
+ build-essential \
11
+ && apt-get clean \
12
+ && rm -rf /var/lib/apt/lists/*
13
 
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
 
20
  ENV TOKENIZERS_PARALLELISM=false
21
 
22
  EXPOSE 7860
23
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]