aiosqlite, cryptography, hyperliquid-python-sdk

This commit is contained in:
k
2026-04-21 19:45:49 +08:00
parent 3056635a5c
commit 3f901df82b
3 changed files with 27 additions and 4 deletions
+10 -3
View File
@@ -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