This repository is for the Sanic Docker image.
It preinstalls the latest Sanic LTS version on top of a Python 3.7. The container runs Alpine Linux.
Setup your own Dockerfile
FROM sanicframework/sanic:LTS
RUN mkdir /srv
COPY . /srv
EXPOSE 8888
CMD ["python" "/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
Are you looking for a best practices solution with some guidance on how to setup your Sanic App? We will be releasing a second image in the future with some more guidance.