-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (21 loc) · 837 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (21 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# syntax=docker/dockerfile:1.7
# Local image builds supply a statically linked linux binary in dist/image/.
FROM scratch AS artifact
ARG TARGETARCH
COPY dist/image/stratz-mcp-linux-${TARGETARCH} /stratz-mcp
FROM scratch
ARG VERSION=dev
ARG REVISION=unknown
LABEL org.opencontainers.image.title="stratz-mcp" \
org.opencontainers.image.description="Unofficial local MCP server for the STRATZ API" \
org.opencontainers.image.source="https://github.com/aneviaro/stratz-mcp" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.revision="${REVISION}" \
org.opencontainers.image.licenses="MIT"
COPY --from=artifact /stratz-mcp /stratz-mcp
COPY --chown=65532:65532 dist/image/cache /cache
USER 65532:65532
VOLUME ["/cache"]
ENV XDG_CACHE_HOME=/cache
ENTRYPOINT ["/stratz-mcp"]
CMD ["serve"]