sanic-org / sanic-docker

Official Docker images for Sanic

Home Page:https://cloud.docker.com/u/sanicframework/repository/docker/sanicframework/sanic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

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.

About

Official Docker images for Sanic

https://cloud.docker.com/u/sanicframework/repository/docker/sanicframework/sanic

License:MIT License


Languages

Language:Makefile 56.4%Language:Dockerfile 43.6%