Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 588 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 588 Bytes

DDL Dockerfiles

This repository is for support of a talk at the Dayton Dynamic Languages group about writing Dockerfiles to optimize for speed and size.

Prerequisites

Python 3.12, Poetry, and Docker

How to run

From the command line

poetry shell
poetry install
cd api
uvicorn main:app --host 0.0.0.0 --port 8000 --reload

Using Docker

docker build -f Dockerfile_0 -t image_0 .
docker run -p 8000:8000 image_0

Using Docker Compose

Edit compose.yaml to point to the Dockerfile you wish to target.

docker-compose up --build