Skip to main content
Glama
Anwesh43

Apify MCP Server Template

by Anwesh43
Dockerfile1.31 kB
# First, specify the base Docker image. # You can see the Docker images from Apify at https://hub.docker.com/r/apify/. # You can also use any other image from Docker Hub. FROM apify/actor-python:3.13 USER myuser # Second, copy just requirements.txt into the Actor image, # since it should be the only file that affects the dependency installation in the next step, # in order to speed up the build. COPY --chown=myuser:myuser requirements.txt ./ # Install the packages specified in requirements.txt, # print the installed Python version, pip version, # and all installed packages with their versions for debugging. RUN echo "Python version:" \ && python --version \ && echo "Pip version:" \ && pip --version \ && echo "Installing dependencies:" \ && pip install -r requirements.txt \ && echo "All installed Python packages:" \ && pip freeze # Next, copy the remaining files and directories with the source code. # Since we do this after installing the dependencies, quick builds will be really fast # for most source file changes. COPY --chown=myuser:myuser . ./ # Use compileall to ensure the runnability of the Actor Python code. RUN python3 -m compileall -q src/ # Specify how to launch the source code of your Actor. # By default, the "python3 -m ." command is run. CMD ["python3", "-m", "src"]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Anwesh43/ollama-apify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server