Skip to content

Commit

Permalink
Fix docker and update lock file (#1)
Browse files Browse the repository at this point in the history
fix #4

Co-authored-by: Eric Lopes <nullhack@users.noreply.github.com>
Reviewed-on: https://gitea.eol.myds.me/eol/python-project-template/pulls/1
  • Loading branch information
Eric Lopes and nullhack committed Nov 21, 2023
1 parent 8e6a3cc commit 71f76b3
Show file tree
Hide file tree
Showing 3 changed files with 506 additions and 508 deletions.
8 changes: 1 addition & 7 deletions {{cookiecutter.project_slug}}/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,14 @@ COPY pyproject.toml .
COPY poetry.lock .
RUN poetry install --no-root

COPY .pre-commit-config.yaml .
COPY README.md .
COPY features features
COPY {{cookiecutter.package_name}} {{cookiecutter.package_name}}
COPY tests tests

COPY ./ ./
RUN poetry install

ARG TESTBUILD=True
ENV TESTBUILD=$TESTBUILD
RUN if [ "$TESTBUILD" = 'True' ]; then poe lint; fi
RUN if [ "$TESTBUILD" = 'True' ]; then poe test; fi


RUN poetry build --format=wheel
RUN poetry export --only main -f requirements.txt --without-hashes --output requirements.txt

Expand Down
Loading

0 comments on commit 71f76b3

Please sign in to comment.