Official Docker images for Sanic
10K+
This image is meant to be a starting point for you to build your own Sanic application running on Docker. It makes no decisions for you and is completely unopinionated (just like the Sanic framework itself).
We currently build images for Python 3.10 and 3.11, but if you need any other just let us know.
For each of those Python versions, you can choose one of the following Sanic versions:
The container runs Alpine Linux.
Setup your own Dockerfile
FROM sanicframework/sanic:lts-py3.10
RUN mkdir /srv
COPY . /srv
EXPOSE 8888
ENTRYPOINT ["python3" "/srv/my-sanic-server.py"]
Build it
docker build -t my-sanic-server .
Run it as you would any other container
docker run my-sanic-server
Content type
Image
Digest
sha256:5b1dc1d04…
Size
140.8 MB
Last updated
4 months ago
docker pull sanicframework/sanic:latest-py3.11