Browse Source

Merge pull request #582 from Trimutex/main

feat: Add netcat to Dockerfile for healthcheck
Timothy Jaeryang Baek 1 năm trước cách đây
mục cha
commit
ee675e794f
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      Dockerfile

+ 3 - 3
Dockerfile

@@ -35,10 +35,10 @@ COPY ./backend/requirements.txt ./requirements.txt
 RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
 RUN pip3 install -r requirements.txt --no-cache-dir
 
-# Install pandoc
+# Install pandoc and netcat
 # RUN python -c "import pypandoc; pypandoc.download_pandoc()"
 RUN apt-get update \
-    && apt-get install -y pandoc \
+    && apt-get install -y pandoc netcat-openbsd \
     && rm -rf /var/lib/apt/lists/*
 
 # RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
@@ -53,4 +53,4 @@ COPY --from=build /app/build /app/build
 # copy backend files
 COPY ./backend .
 
-CMD [ "sh", "start.sh" ]
+CMD [ "sh", "start.sh" ]