Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 738 Bytes

README.md

File metadata and controls

32 lines (17 loc) · 738 Bytes

Sanic Dockerfile

This repository is for the Sanic Docker image.

What does this image do?

It preinstalls the latest Sanic LTS version on top of a Python 3.7. The container runs Alpine Linux.

How do I use this?

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.