Fix build issues in Dockerfile
This commit is contained in:
parent
dfe8f78038
commit
88575765b8
1 changed files with 5 additions and 2 deletions
|
@ -9,12 +9,15 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
|
|||
PIP_NO_CACHE_DIR=1 \
|
||||
POETRY_VERSION=1.1.4
|
||||
|
||||
RUN apk add --no-cache gcc libffi-dev musl-dev openssl-dev rust cargo
|
||||
RUN apk add --no-cache build-base libffi-dev musl-dev openssl-dev rust cargo yajl-dev
|
||||
RUN pip install "poetry==$POETRY_VERSION"
|
||||
RUN python -m venv /venv
|
||||
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
RUN poetry export -f requirements.txt | /venv/bin/pip install -r /dev/stdin
|
||||
RUN poetry export \
|
||||
--format requirements.txt \
|
||||
--without-hashes \
|
||||
| /venv/bin/pip install -r /dev/stdin
|
||||
|
||||
COPY . .
|
||||
RUN poetry build && /venv/bin/pip install dist/*.whl
|
||||
|
|
Loading…
Reference in a new issue