Update Dockerfile for correct directory structure
Browse files- Dockerfile +20 -2
Dockerfile
CHANGED
@@ -66,6 +66,7 @@ RUN apt-get update && \
|
|
66 |
libmpfr-dev \
|
67 |
libmpc-dev \
|
68 |
fonts-noto-cjk \
|
|
|
69 |
&& rm -rf /var/lib/apt/lists/*
|
70 |
|
71 |
# Create app directory structure and storage directory
|
@@ -82,7 +83,23 @@ RUN pip install --no-cache-dir \
|
|
82 |
tensorflow \
|
83 |
flax \
|
84 |
transformers \
|
85 |
-
celery
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
# Copy Python environment and set permissions
|
88 |
COPY --from=python-builder --chown=user /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
@@ -109,7 +126,8 @@ ENV FLASK_APP=app.py \
|
|
109 |
HOME=/app \
|
110 |
PATH="/usr/local/bin:${PATH}" \
|
111 |
PYTHONPATH=/app/api \
|
112 |
-
TZ=UTC
|
|
|
113 |
|
114 |
# Switch to the non-root user
|
115 |
USER user
|
|
|
66 |
libmpfr-dev \
|
67 |
libmpc-dev \
|
68 |
fonts-noto-cjk \
|
69 |
+
ffmpeg \
|
70 |
&& rm -rf /var/lib/apt/lists/*
|
71 |
|
72 |
# Create app directory structure and storage directory
|
|
|
83 |
tensorflow \
|
84 |
flax \
|
85 |
transformers \
|
86 |
+
celery \
|
87 |
+
arxiv \
|
88 |
+
matplotlib \
|
89 |
+
duckduckgo_search \
|
90 |
+
jsonpath_ng \
|
91 |
+
pydub \
|
92 |
+
qrcode \
|
93 |
+
twilio \
|
94 |
+
vanna \
|
95 |
+
wikipedia \
|
96 |
+
yfinance \
|
97 |
+
scipy \
|
98 |
+
nltk \
|
99 |
+
unstructured
|
100 |
+
|
101 |
+
# Download NLTK data
|
102 |
+
RUN python -m nltk.downloader punkt averaged_perceptron_tagger
|
103 |
|
104 |
# Copy Python environment and set permissions
|
105 |
COPY --from=python-builder --chown=user /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
|
|
126 |
HOME=/app \
|
127 |
PATH="/usr/local/bin:${PATH}" \
|
128 |
PYTHONPATH=/app/api \
|
129 |
+
TZ=UTC \
|
130 |
+
NLTK_DATA=/usr/local/share/nltk_data
|
131 |
|
132 |
# Switch to the non-root user
|
133 |
USER user
|