Fix build issues in Dockerfile

This commit is contained in:
Correl Roush 2022-07-27 23:09:27 -04:00
parent dfe8f78038
commit 88575765b8

View file

@ -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