FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
fastapi-admin/Dockerfile at dev · stonegithubs/fastapi-admin · GitHub
stonegithubs
fastapi-admin
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
fastapi-admin
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (14 loc) · 580 Bytes
Breadcrumbs
fastapi-admin
/
Dockerfile
Copy path
File metadata and controls
15 lines (14 loc) · 580 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM
python:3.9 as builder
ENV
CRYPTOGRAPHY_DONT_BUILD_RUST=1
RUN
mkdir -p /fastapi-admin
WORKDIR
/fastapi-admin
COPY
pyproject.toml poetry.lock /fastapi-admin/
ENV
POETRY_VIRTUALENVS_CREATE false
RUN
pip install --upgrade pip && pip3 install poetry && poetry install --no-root
COPY
. /fastapi-admin
RUN
poetry install && make compile
FROM
python:3.9-slim
WORKDIR
/fastapi-admin
COPY
--from=builder /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
COPY
--from=builder /usr/local/bin/ /usr/local/bin/
COPY
--from=builder /fastapi-admin /fastapi-admin
Back
|
FazBrowse Home
|
New Git URL