Adieee5 commited on
Commit
192342d
·
verified ·
1 Parent(s): e35abf0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -12,7 +12,7 @@ WORKDIR /app
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
- # Install system dependencies
16
  USER root
17
  RUN apt-get update && apt-get install -y \
18
  python3 \
@@ -33,6 +33,7 @@ RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3410200.tar.gz \
33
  # Update library path to use the new SQLite
34
  ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
35
 
 
36
  # Go back to non-root user and app directory
37
  USER user
38
  WORKDIR /app
@@ -41,4 +42,4 @@ WORKDIR /app
41
  COPY --chown=user . /app
42
 
43
  # Start the app
44
- CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
+ # Install system dependencies and build tools
16
  USER root
17
  RUN apt-get update && apt-get install -y \
18
  python3 \
 
33
  # Update library path to use the new SQLite
34
  ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
35
 
36
+ RUN mkdir -p /app/static/chroma_store && chown -R user:user /app/static/chroma_store
37
  # Go back to non-root user and app directory
38
  USER user
39
  WORKDIR /app
 
42
  COPY --chown=user . /app
43
 
44
  # Start the app
45
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--preload"]