Skip to content

Commit c9b565f

Browse files
committed
Dockerfile: Update to install all group deps
1 parent 4aec6d9 commit c9b565f

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ WORKDIR /app
1818
COPY 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
2223
RUN 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
4047
FROM python:3.12-slim
@@ -64,8 +71,8 @@ COPY --chown=amp:amp apps/ ./apps/
6471
COPY --chown=amp:amp data/ ./data/
6572
COPY --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
7178
USER amp

k8s/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
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

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ test = [
8989
requires = ["hatchling"]
9090
build-backend = "hatchling.build"
9191

92+
[tool.hatch.build.targets.wheel]
93+
packages = ["src/amp"]
94+
9295
[tool.pytest.ini_options]
9396
pythonpath = ["."]
9497
testpaths = ["tests"]

0 commit comments

Comments
 (0)