File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed
Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 1- FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
1+ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
22
3- # Install Poetry
4- RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python && \
5- cd /usr/local/bin && \
6- ln -s /opt/poetry/bin/poetry && \
7- poetry config virtualenvs.create false
3+ ENV PYTHONUNBUFFERED=1 \
4+ POETRY_HOME="/opt/poetry" \
5+ POETRY_NO_INTERACTION=1 \
6+ POETRY_VIRTUALENVS_CREATE=false \
7+ BUILD_PATH="/opt/build" \
8+ PYSETUP_PATH="/opt/project" \
9+ VENV_PATH="/opt/project/.venv"
810
9- COPY ./pyproject.toml /app/
11+ ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
12+
13+ RUN curl -sSL https://install.python-poetry.org | python3 -
1014
11- RUN poetry install --no-dev
15+ COPY ./pyproject.toml /app/
1216
13- COPY ./app /app
17+ RUN poetry install --without dev
1418
15- # Send print & log statements directly to stdout
16- ENV PYTHONUNBUFFERED 1
19+ COPY ./app /app
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ name = "setae-api"
33version = " 0.3.0"
44description = " API middleware for FOLIO"
55authors = [
" Nick Cappadona <[email protected] >" ]
6+ package-mode = false
67
78[tool .poetry .dependencies ]
8- python = " ^3.8 "
9+ python = " ^3.9 "
910fastapi = " ^0.88.0"
1011json2xml = " ^3.5.0"
1112requests = " ^2.24.0"
@@ -14,11 +15,11 @@ python-dotenv = "^0.14.0"
1415lxml = " ^4.6.2"
1516httpcore = " 0.15.0"
1617
17- [tool .poetry .dev- dependencies ]
18+ [tool .poetry .group . dev . dependencies ]
1819mypy = " ^0.812"
1920flake8 = " ^3.9.2"
2021black = " ^21.5b1"
2122
2223[build-system ]
2324requires = [" poetry-core>=1.0.0" ]
24- build-backend = " poetry.core.masonry.api"
25+ build-backend = " poetry.core.masonry.api"
You can’t perform that action at this time.
0 commit comments