Hemang1915 commited on
Commit
5bdbedd
·
1 Parent(s): 6fc4c16

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -1,19 +1,27 @@
1
  FROM python:3.11-slim
 
2
  WORKDIR /app
 
3
  RUN apt-get update && apt-get install -y \
4
  libhdf5-dev \
5
  gcc \
6
  g++ \
7
  && rm -rf /var/lib/apt/lists/*
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
 
10
  COPY app.py .
11
  COPY model.h5 .
12
  COPY tokenizer.pkl .
13
  COPY le_category.pkl .
14
  COPY le_subcategory.pkl .
15
  COPY ppo_finetuned_model.zip .
 
16
  RUN ls -la /app
 
17
  ENV MPLCONFIGDIR=/tmp/matplotlib
 
18
  EXPOSE 8000
19
- CMD ["uvicorn", "app.py:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
1
  FROM python:3.11-slim
2
+
3
  WORKDIR /app
4
+
5
  RUN apt-get update && apt-get install -y \
6
  libhdf5-dev \
7
  gcc \
8
  g++ \
9
  && rm -rf /var/lib/apt/lists/*
10
+
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
+
14
  COPY app.py .
15
  COPY model.h5 .
16
  COPY tokenizer.pkl .
17
  COPY le_category.pkl .
18
  COPY le_subcategory.pkl .
19
  COPY ppo_finetuned_model.zip .
20
+
21
  RUN ls -la /app
22
+
23
  ENV MPLCONFIGDIR=/tmp/matplotlib
24
+
25
  EXPOSE 8000
26
+
27
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]