aiosqlite, cryptography, hyperliquid-python-sdk
This commit is contained in:
+10
-3
@@ -1,13 +1,20 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# System deps
|
||||
# System deps needed for native extensions:
|
||||
# gcc, libpq-dev → asyncpg (Postgres driver)
|
||||
# libffi-dev → cryptography
|
||||
# build-essential → general C compilation fallback
|
||||
# curl → healthcheck probe
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc libpq-dev curl \
|
||||
gcc build-essential libpq-dev libffi-dev curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install Python deps first (layer cache)
|
||||
# Upgrade pip + install wheel first so pre-built wheels are preferred
|
||||
RUN pip install --no-cache-dir --upgrade pip wheel setuptools
|
||||
|
||||
# Install Python deps (separate layer for cache efficiency)
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user