Skip to content

Commit 106e972

Browse files
committed
fix dockerfile
1 parent f60be57 commit 106e972

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/sdk-compliance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
name: PostHog SDK compliance tests
1717
uses: PostHog/posthog-sdk-test-harness/.github/workflows/test-sdk-action.yml@main
1818
with:
19-
adapter-dockerfile: "Dockerfile"
20-
adapter-context: "sdk_compliance_adapter"
19+
adapter-dockerfile: "sdk_compliance_adapter/Dockerfile"
20+
adapter-context: "."
2121
test-harness-version: "latest"

sdk_compliance_adapter/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ FROM python:3.12-slim
22

33
WORKDIR /app
44

5-
# Copy the SDK source code from parent directory
6-
COPY ../posthog/ /app/sdk/posthog/
7-
COPY ../setup.py ../pyproject.toml ../README.md ../LICENSE /app/sdk/
5+
# Copy the SDK source code
6+
COPY posthog/ /app/sdk/posthog/
7+
COPY setup.py pyproject.toml README.md LICENSE /app/sdk/
88

99
# Install the SDK from source
1010
RUN cd /app/sdk && pip install --no-cache-dir -e .
1111

1212
# Install adapter dependencies
1313
RUN pip install --no-cache-dir flask python-dateutil
1414

15-
# Copy adapter code (from current context)
16-
COPY adapter.py /app/adapter.py
15+
# Copy adapter code
16+
COPY sdk_compliance_adapter/adapter.py /app/adapter.py
1717

1818
# Expose port 8080
1919
EXPOSE 8080

0 commit comments

Comments
 (0)