Skip to content

Commit b8959d3

Browse files
committed
update dockerfile
1 parent 4361d61 commit b8959d3

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,13 @@ jobs:
128128
- name: Build and push container image
129129
run: |
130130
# Build the image
131-
podman build -t "ghcr.io/${{ github.repository }}/vtk-mcp:latest" \
132-
-t "ghcr.io/${{ github.repository }}/vtk-mcp:${{ github.sha }}" \
133-
-t "ghcr.io/${{ github.repository }}/vtk-mcp:${{ steps.slug.outputs.SHORT_SHA }}" \
131+
GITHUB_REPOSITORY="$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')"
132+
podman build -t "ghcr.io/${GITHUB_REPOSITORY}/vtk-mcp:latest" \
133+
-t "ghcr.io/${GITHUB_REPOSITORY}/vtk-mcp:${{ github.sha }}" \
134+
-t "ghcr.io/${GITHUB_REPOSITORY}/vtk-mcp:${{ steps.slug.outputs.SHORT_SHA }}" \
134135
.
135136
136137
# Push all tags
137-
podman push "ghcr.io/${{ github.repository }}/vtk-mcp:latest"
138-
podman push "ghcr.io/${{ github.repository }}/vtk-mcp:${{ github.sha }}"
139-
podman push "ghcr.io/${{ github.repository }}/vtk-mcp:${{ steps.slug.outputs.SHORT_SHA }}"
138+
podman push "ghcr.io/${GITHUB_REPOSITORY}/vtk-mcp:latest"
139+
podman push "ghcr.io/${GITHUB_REPOSITORY}/vtk-mcp:${{ github.sha }}"
140+
podman push "ghcr.io/${GITHUB_REPOSITORY}/vtk-mcp:${{ steps.slug.outputs.SHORT_SHA }}"

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ COPY . .
2626
RUN pip install --upgrade pip && \
2727
pip install --verbose .
2828

29-
# Create non-root user for security
30-
#RUN useradd --create-home --shell /bin/bash --uid 1000 vtk-user && \
31-
# chown -R vtk-user:vtk-user /app
32-
#USER vtk-user
33-
3429
EXPOSE 8000
3530

3631
CMD ["vtk-mcp-server", "--transport", "http", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)