From 0ebcb68e7cf0c8bda5e8bde292d8d9bdff765f07 Mon Sep 17 00:00:00 2001 From: Sciocatti Date: Mon, 8 May 2023 16:16:33 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index ea1b56e..fcab986 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,23 @@ # Image-Python-3-8-fastapi +## Create Base Image +```bash +docker pull python:3.8-slim +docker tag python:3.8-slim docker.sciocatti.com/python:3.8-slim +docker push docker.sciocatti.com/python:3.8-slim +``` + +## Build Fastapi Image +```bash +docker build -f Dockerfile.python-3-8-fastapi -t docker.sciocatti.com/python-3.8-fastapi:0.0.1 . +``` + +## Run Locally +```bash +docker run --name=bb_fastapi -d --restart=always -p 64000:15234 -v {some project}:/project docker.sciocatti.com/python-3.8-fastapi:0.0.1 /project/start.sh +``` + +## Push to Registry +```bash +docker push docker.sciocatti.com/python-3.8-fastapi:0.0.1 +``` \ No newline at end of file