aeonshift commited on
Commit
376fb94
·
verified ·
1 Parent(s): f303f8e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -15
Dockerfile CHANGED
@@ -1,21 +1,12 @@
1
- FROM node:20-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install Python 3 and dependencies with non-interactive frontend
6
- RUN apt-get update && \
7
- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3 python3-pip python3-venv && \
8
- ln -s /usr/bin/python3 /usr/bin/python && \
9
- python3 -m pip install --no-cache-dir requests aiohttp
10
-
11
- # Update npm to the latest version
12
- RUN npm install -g npm@11.4.1
13
-
14
- COPY package.json .
15
- RUN npm install
16
-
17
- COPY server.js .
18
 
 
19
  EXPOSE 7860
20
 
21
- CMD ["npm", "start"]
 
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install Python dependencies for @rashidazarang/airtable-mcp
6
+ RUN pip install @rashidazarang/airtable-mcp requests aiohttp
 
 
 
 
 
 
 
 
 
 
 
7
 
8
+ # Expose the port
9
  EXPOSE 7860
10
 
11
+ # Run the MCP server directly with environment variables
12
+ CMD ["sh", "-c", "AIRTABLE_API_TOKEN=$AIRTABLE_API_TOKEN AIRTABLE_BASE_ID=$AIRTABLE_BASE_ID python -m @rashidazarang.airtable_mcp"]