Skip to content

Commit

Permalink
Revert "move to poetry again"
Browse files Browse the repository at this point in the history
This reverts commit 25d4a04.

# Conflicts:
#	Dockerfile
#	poetry.lock
#	pyproject.toml
  • Loading branch information
jezdez committed Jul 29, 2020
1 parent 44e82de commit 56830ed
Show file tree
Hide file tree
Showing 5 changed files with 707 additions and 1,942 deletions.
14 changes: 3 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ ENV PYTHONPATH=/app/ \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VIRTUALENVS_CREATE=false \
LANG=C.UTF-8 \
PORT=5000

Expand Down Expand Up @@ -50,27 +49,20 @@ RUN apt-get update && \

RUN pip install -U pip

RUN pip install --pre poetry

WORKDIR /app
COPY requirements.txt /app/

COPY pyproject.toml poetry.lock /app/

RUN poetry export --without-hashes -f requirements.txt --dev \
| poetry run pip install -r /dev/stdin \
&& poetry debug
RUN pip install -r requirements.txt

COPY . /app/

COPY --from=npm /tmp/node_modules /app/node_modules/
COPY --from=npm /tmp/jazzband/static/dist /app/jazzband/static/dist/

RUN poetry install --no-interaction

RUN chown -R 10001:10001 /app

USER 10001

EXPOSE 5000

ENTRYPOINT ["poetry", "run", "/app/docker-entrypoint.sh", "--"]
ENTRYPOINT ["/app/docker-entrypoint.sh", "--"]
Loading

0 comments on commit 56830ed

Please sign in to comment.