Sidecar Tutorial: Docker & Deploy
Python FastApi Container
# Python FastApi Docker Build
FROM python:3.10
# Alternatively you can use different tags from https://hub.docker.com/r/nginx/unit
WORKDIR /server
COPY ./server/requirements.txt /server/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /server/requirements.txt
# server/backend/requirements.txt
COPY . /server
EXPOSE 5000
#
CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "5000"]
Vue / Nuxt js Container
Docker-compose Application
Deployment
Obtaining a Hostname and utilising a Web Service for hosting the application externally
Last updated