update fastapi to guvicorn and improve supertoken integration

This commit is contained in:
2024-07-24 13:20:52 +02:00
parent d68da10f75
commit 6e14458f29
10 changed files with 142 additions and 85 deletions

View File

@@ -1,6 +1,32 @@
FROM python:3.12-slim
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11-slim AS builder
WORKDIR /app
COPY ./requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
COPY requirements.txt ./
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r requirements.txt
# COPY . ./app
# FROM builder as dev-envs
# RUN <<EOF
# apt-get update
# apt-get install -y --no-install-recommends git
# EOF
# RUN <<EOF
# useradd -s /bin/bash -m vscode
# groupadd docker
# usermod -aG docker vscode
# EOF
# # install Docker tools (cli, buildx, compose)
# COPY --from=gloursdocker/docker / /
# FROM python:3.12-slim
# WORKDIR /app
# COPY ./requirements.txt ./
# RUN pip3 install --no-cache-dir -r requirements.txt