Skip to content
Snippets Groups Projects
Commit bef26daa authored by Robert Goldmann's avatar Robert Goldmann
Browse files

switched to poetry

parent 2a333e5d
No related branches found
No related tags found
No related merge requests found
FROM python:3.9-alpine
FROM python:3.9-slim-bullseye
RUN apk add --no-cache openssl-dev libffi-dev gcc musl-dev make
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y curl && \
rm -rf /var/lib/apt/lists/*
RUN pip install pipenv
COPY src /opt/StorageLeaf/src
COPY Pipfile /opt/StorageLeaf
RUN curl -sSL https://install.python-poetry.org | python -
COPY . /opt/StorageLeaf
RUN rm /opt/StorageLeaf/settings.json
WORKDIR /opt/StorageLeaf
RUN pipenv install
RUN ln -s $(pipenv --venv) /opt/StorageLeaf/mypipenv
RUN /root/.local/bin/poetry install --no-root && \
/root/.local/bin/poetry cache clear --all .
RUN ln -s $($HOME/.local/share/pypoetry/venv/bin/poetry env info -p) /opt/StorageLeaf/myvenv
WORKDIR /opt/StorageLeaf/src
CMD [ "/opt/StorageLeaf/mypipenv/bin/python", "/opt/StorageLeaf/src/StorageLeaf.py" ]
CMD [ "/opt/StorageLeaf/myvenv/bin/python", "/opt/StorageLeaf/src/StorageLeaf.py"]
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[[source]]
url = "https://pypi.thecodelabs.de"
verify_ssl = true
name = "TheCodeLabs"
[requires]
python_version = "3"
[packages]
TheCodeLabs-BaseUtils = "*"
fastapi = "==0.92.0"
uvicorn = "==0.20.0"
sqlalchemy = "==2.0.4"
apscheduler = "==3.10.0"
[dev-packages]
This diff is collapsed.
[tool.poetry]
name = "StorageLeaf"
version = "1.1.0"
description = "Accepts sensor data and saves them into a database. The saved data can be accessed via api."
authors = ["TheCodeLabsDevs"]
[[tool.poetry.source]]
name = "TheCodeLabs"
url = "https://pypi.thecodelabs.de"
secondary = true
[tool.poetry.dependencies]
python = "^3.9"
thecodelabs-baseutils = "*"
fastapi = "0.92.0"
uvicorn = "0.20.0"
sqlalchemy = "2.0.4"
apscheduler = "3.10.0"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment