Skip to content

Commit b03459c

Browse files
committed
fix dockerfile
1 parent 8d54a3f commit b03459c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

sdk_compliance_adapter/Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ FROM python:3.12-slim
22

33
WORKDIR /app
44

5-
# Copy the SDK source code
6-
COPY . /app/sdk
5+
# Copy the SDK source code (everything except sdk_compliance_adapter)
6+
COPY posthog/ /app/sdk/posthog/
7+
COPY setup.py pyproject.toml README.md LICENSE /app/sdk/
78

89
# Install the SDK from source
910
RUN cd /app/sdk && pip install --no-cache-dir -e .
@@ -17,10 +18,5 @@ COPY sdk_compliance_adapter/adapter.py /app/adapter.py
1718
# Expose port 8080
1819
EXPOSE 8080
1920

20-
# Set environment variables (will be overridden by docker run)
21-
ENV POSTHOG_HOST=http://localhost:8080
22-
ENV POSTHOG_API_KEY=test_key
23-
ENV PORT=8080
24-
2521
# Run the adapter
2622
CMD ["python", "/app/adapter.py"]

0 commit comments

Comments
 (0)