Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -15
Dockerfile
CHANGED
|
@@ -1,21 +1,12 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install Python
|
| 6 |
-
RUN
|
| 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 |
-
|
|
|
|
|
|
| 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"]
|