legends810 commited on
Commit
efe5e25
·
verified ·
1 Parent(s): 0160093

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -12
Dockerfile CHANGED
@@ -1,16 +1,14 @@
1
- # Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2
- FROM node:lts-alpine
3
- WORKDIR /app
 
 
4
 
5
- # Copy package files and install dependencies
6
- COPY package*.json ./
7
- RUN npm install --ignore-scripts
8
 
9
- # Copy the rest of the application
10
- COPY . .
11
 
12
- # Expose port if needed (optional, as MCP servers might not require it)
13
- # EXPOSE 3000
14
 
15
- # Run the MCP server
16
- CMD ["node", "pollinations-mcp-server.js"]
 
1
+ FROM python:3.9-slim
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
 
7
+ WORKDIR /app
 
 
8
 
9
+ COPY --chown=user requirements.txt requirements.txt
10
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
+ COPY --chown=user . /app
 
13
 
14
+ CMD ["python", "app.py"]