Skip to content

Commit

Permalink
Switch back to venv to prevent poetry from mucking with sys py
Browse files Browse the repository at this point in the history
  • Loading branch information
mbillow committed Feb 14, 2021
1 parent 79a08e5 commit c184a00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ RUN apk add --no-cache --virtual .build-deps \
git \
&& python -m pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir poetry cryptography==3.3.2 \
&& poetry config virtualenvs.create false \
&& poetry config experimental.new-installer false \
&& poetry install --no-dev --no-interaction --no-ansi \
&& poetry install --no-dev -v\
&& apk del .build-deps \
&& rm -rf ~/.cache
&& rm -rf ~/.cache/pip \
&& rm -rf ~/.cache/pypoetry/{cache,artifacts}
CMD poetry run alembic upgrade head && poetry run python -m feeder
EXPOSE 1883/tcp
EXPOSE 5000/tcp
Expand Down
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ uvicorn = "^0.13.3"
aiofiles = "^0.6.0"
Jinja2 = "^2.11.3"
cryptography = "3.3.2"
requests = "^2.25.1"

[tool.poetry.dev-dependencies]
black = {version = "20.8b1", allow-prereleases = true}
Expand Down

0 comments on commit c184a00

Please sign in to comment.