Skip to content

Commit ff5be77

Browse files
committed
Remove uv.lock because we don't use it, try adding .dockerignore?
1 parent 35c28e2 commit ff5be77

2 files changed

Lines changed: 35 additions & 4 deletions

File tree

.dockerignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
# VCS/IDE
3+
.git
4+
.gitignore
5+
.github
6+
.idea
7+
.vscode
8+
.claude
9+
10+
# Python artifacts
11+
.venv
12+
.ruff_cache
13+
.pytest_cache
14+
.basedpyright
15+
*.egg-info
16+
*.pyc
17+
__pycache__
18+
dist/
19+
build/
20+
.coveragerc
21+
sitecustomize.py
22+
23+
# Docs/dev-only files
24+
docs/
25+
*.md
26+
tests/
27+
examples/
28+
scripts/
29+
.env
30+
31+
# Miscellaneous
32+
.DS_Store

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ FROM splunk/splunk:${SPLUNK_VERSION}
33

44
USER root
55

6-
# Copy splunk-mcp-server.tgz, we need to copy entire sdk since
6+
# Copy splunk-mcp-server.tgz, we need to copy entire SDK since
77
# splunk-mcp-server.tgz might not exist and we don't want to fail in such case.
88
RUN mkdir /tmp/sdk
9-
COPY . /tmp/sdk
10-
RUN /bin/bash -c 'if [ -f /tmp/sdk/splunk-mcp-server.tgz ]; then cp /tmp/sdk/splunk-mcp-server.tgz /splunk-mcp-server.tgz; fi'
9+
COPY . /tmp/sdk # TODO: Why exactly do we need to copy the entire SDK?
10+
RUN /bin/bash -c '[ -f /tmp/sdk/splunk-mcp-server.tgz ] && cp /tmp/sdk/splunk-mcp-server.tgz /splunk-mcp-server.tgz'
1111
RUN rm -rf /tmp/sdk
1212

1313
RUN mkdir /tmp/sdk
1414
COPY ./pyproject.toml /tmp/sdk/pyproject.toml
15-
COPY ./uv.lock /tmp/sdk/uv.lock
1615
COPY ./splunklib /tmp/sdk/splunklib
1716

1817
RUN mkdir /splunklib-deps

0 commit comments

Comments
 (0)