forked from yaso_meth/mih-project
update fastapi to guvicorn and improve supertoken integration
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user