Severian commited on
Commit
c3121a2
1 Parent(s): 302aead

fix: update Dockerfile to properly handle package installation

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -74
Dockerfile CHANGED
@@ -97,23 +97,6 @@ RUN yarn install --frozen-lockfile && \
97
  # ============================================
98
  FROM base AS python-builder
99
 
100
- # Install build dependencies with proper repository update
101
- RUN apt-get update && \
102
- apt-get install -y --no-install-recommends \
103
- build-essential \
104
- gcc \
105
- g++ \
106
- libc6-dev \
107
- libffi-dev \
108
- libgmp-dev \
109
- libmpfr-dev \
110
- libmpc-dev \
111
- libssl-dev \
112
- make \
113
- pkg-config && \
114
- apt-get clean && \
115
- rm -rf /var/lib/apt/lists/*
116
-
117
  WORKDIR /app
118
 
119
  # Copy api directory
@@ -122,63 +105,7 @@ COPY api/ api/
122
  WORKDIR /app/api
123
 
124
  # Install core dependencies first
125
- RUN pip install --no-cache-dir \
126
- poetry==1.8.3 \
127
- gunicorn \
128
- gevent \
129
- grpcio \
130
- pydantic-settings \
131
- protobuf \
132
- grpcio-tools \
133
- flask \
134
- flask-cors \
135
- Flask-SQLAlchemy==3.1.1 \
136
- Flask-Migrate==4.0.7 \
137
- flask-login \
138
- flask-restful \
139
- flask-limiter \
140
- flask-caching \
141
- flask-jwt-extended \
142
- flask-socketio \
143
- PyYAML \
144
- celery \
145
- redis \
146
- psycopg2-binary \
147
- sqlalchemy \
148
- alembic \
149
- pyjwt \
150
- requests \
151
- numpy \
152
- pandas \
153
- python-dotenv \
154
- pycryptodome \
155
- cryptography \
156
- bcrypt \
157
- python-jose[cryptography] \
158
- passlib \
159
- python-multipart \
160
- gmpy2 \
161
- transformers \
162
- torch \
163
- tensorflow \
164
- sentencepiece \
165
- tokenizers \
166
- tiktoken \
167
- Pillow \
168
- opencv-python-headless \
169
- scikit-learn \
170
- scipy \
171
- google-cloud-aiplatform \
172
- google-generativeai \
173
- vertexai \
174
- google-cloud-core \
175
- google-api-core \
176
- yarl \
177
- aiohttp \
178
- tritonclient[all] \
179
- cohere==4.43 \
180
- anthropic==0.23.1 \
181
- openai==1.14.0 && \
182
  poetry config virtualenvs.create false && \
183
  poetry install --no-dev --no-interaction --no-ansi
184
 
 
97
  # ============================================
98
  FROM base AS python-builder
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  WORKDIR /app
101
 
102
  # Copy api directory
 
105
  WORKDIR /app/api
106
 
107
  # Install core dependencies first
108
+ RUN pip install --no-cache-dir poetry==1.8.3 && \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  poetry config virtualenvs.create false && \
110
  poetry install --no-dev --no-interaction --no-ansi
111