Skip to content

Commit ba796b0

Browse files
committed
initial dockerfile
1 parent 40e4090 commit ba796b0

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release Docker
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
tags:
7+
- "*"
8+
release:
9+
types: [published]
10+
jobs:
11+
release-docker:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Docker meta
16+
uses: docker/metadata-action@v4
17+
id: meta
18+
with:
19+
images: flared/docker-mcpdocz
20+
- uses: docker/login-action@v2
21+
if: github.event_name != 'pull_request'
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v2
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v2
29+
- name: Build and push
30+
uses: docker/build-push-action@v4
31+
with:
32+
push: ${{ github.event_name != 'pull_request' }}
33+
tags: ${{ steps.meta.outputs.tags }}
34+
platforms: "linux/arm64,linux/amd64"
35+
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM astral/uv:python3.14-alpine
2+
3+
RUN uv tool install mcpdoc@0.0.10
4+
5+
ENTRYPOINT ["uvx", "mcpdoc"]

0 commit comments

Comments
 (0)