mlabonne commited on
Commit
652aaab
·
1 Parent(s): 663a972

Run static app with Docker

Browse files
Files changed (2) hide show
  1. Dockerfile +11 -0
  2. README.md +2 -2
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-alpine
2
+
3
+ RUN adduser -D -u 1000 appuser
4
+
5
+ WORKDIR /app
6
+ COPY --chown=1000:1000 dist ./dist
7
+
8
+ USER 1000
9
+ EXPOSE 7860
10
+
11
+ CMD ["python", "-m", "http.server", "7860", "--bind", "0.0.0.0", "--directory", "/app/dist"]
README.md CHANGED
@@ -3,10 +3,10 @@ title: LFM2 MCP
3
  emoji: 🚀
4
  colorFrom: blue
5
  colorTo: yellow
6
- sdk: static
 
7
  license: apache-2.0
8
  short_description: In-browser tool calling with MCP, powered by Transformers.js
9
- app_file: dist/index.html
10
  thumbnail: >-
11
  https://huggingface.co/spaces/LiquidAI/LFM2-MCP/resolve/main/public/thumbnail.png
12
  pinned: false
 
3
  emoji: 🚀
4
  colorFrom: blue
5
  colorTo: yellow
6
+ sdk: docker
7
+ app_port: 7860
8
  license: apache-2.0
9
  short_description: In-browser tool calling with MCP, powered by Transformers.js
 
10
  thumbnail: >-
11
  https://huggingface.co/spaces/LiquidAI/LFM2-MCP/resolve/main/public/thumbnail.png
12
  pinned: false