File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ WORKDIR /app
1818COPY pyproject.toml README.md ./
1919
2020# Install dependencies using UV (much faster than pip)
21- # Install just the dependencies, not the package itself yet
21+ # Install ALL dependencies including all loader dependencies
22+ # This ensures optional dependencies don't cause import errors
2223RUN uv pip install --system --no-cache \
2324 pandas>=2.3.1 \
2425 pyarrow>=20.0.0 \
@@ -33,8 +34,14 @@ RUN uv pip install --system --no-cache \
3334 google-cloud-storage>=3.1.0 \
3435 arro3-core>=0.5.1 \
3536 arro3-compute>=0.5.1 \
37+ psycopg2-binary>=2.9.0 \
38+ redis>=4.5.0 \
39+ deltalake>=1.0.2 \
40+ pyiceberg[sql-sqlite]>=0.10.0 \
41+ pydantic>=2.0,<2.12 \
3642 snowflake-connector-python>=4.0.0 \
37- snowpipe-streaming>=1.0.0
43+ snowpipe-streaming>=1.0.0 \
44+ lmdb>=1.4.0
3845
3946# Stage 2: Runtime image
4047FROM python:3.12-slim
@@ -64,8 +71,8 @@ COPY --chown=amp:amp apps/ ./apps/
6471COPY --chown=amp:amp data/ ./data/
6572COPY --chown=amp:amp pyproject.toml README.md ./
6673
67- # Install the amp package in the system Python
68- RUN uv pip install --system --no-cache -e .
74+ # Install the amp package in the system Python (NOT editable for Docker)
75+ RUN uv pip install --system --no-cache .
6976
7077# Switch to non-root user
7178USER amp
Original file line number Diff line number Diff line change 1818 spec :
1919 containers :
2020 - name : loader
21- image : ghcr.io/edgeandnode/amp-python:sha-b2b10aa
21+ image : ghcr.io/edgeandnode/amp-python:pr-13
2222 imagePullPolicy : Always
2323
2424 # Command line arguments for the loader
Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ test = [
8989requires = [" hatchling" ]
9090build-backend = " hatchling.build"
9191
92+ [tool .hatch .build .targets .wheel ]
93+ packages = [" src/amp" ]
94+
9295[tool .pytest .ini_options ]
9396pythonpath = [" ." ]
9497testpaths = [" tests" ]
You can’t perform that action at this time.
0 commit comments