Sign inSign up

fundanie/daphne

By fundanie

Updated over 4 years ago

This is a simple definition of the docker image daphne, to build your own python ASGI server

Image
0

352

fundanie/daphne repository overview

daphne

Docker build GitHub repository

Docker image with daphne ASGI and python 3.9.11 that you can use as a base image for your project. Define your Dockerfile as shown below:

FROM daphne:latest

# install dependecies
COPY ./requirements.txt ./requirements.txt
RUN pip install -r requirements.txt

# copies the entire project folder, containing the main application
COPY ./app ./app

# expose port
EXPOSE 8000

ENTRYPOINT ["daphne", "-b", "0.0.0.0", "-p", "8000", "./app/main:app"]

Tag summary

Content type

Image

Digest

Size

41.1 MB

Last updated

over 4 years ago

docker pull fundanie/daphne