A tiny web-server (reverse proxy) to run functions for every incoming HTTP request.
To build the agent:
docker build -t benhid/go-agent .
Every container needs to embed this binary and use it as CMD
, e.g.:
FROM benhid/go-agent as build-agent
# ...
COPY --from=build-agent /build/agent .
ENV fprocess="python3 index.py"
EXPOSE 80
CMD [ "./agent" ]
You can find a template of a Python application here. Build with:
cd python3
docker build -t hello-python .
And run:
docker run -p 8090:80 hello-python
curl http://0.0.0.0:8090/ -d "hello world"