项目作者: sanic-org

项目描述 :
Official Docker images for Sanic
高级语言: Makefile
项目地址: git://github.com/sanic-org/sanic-docker.git
创建时间: 2019-01-12T20:04:55Z
项目社区:https://github.com/sanic-org/sanic-docker

开源协议:MIT License

下载


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

  1. FROM sanicframework/sanic:LTS
  2. RUN mkdir /srv
  3. COPY . /srv
  4. EXPOSE 8888
  5. ENTRYPOINT ["python3", "/srv/my-sanic-server.py"]

Build it

  1. docker build -t my-sanic-server .

Run it as you would any other container

  1. 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.