Skip to content

Commit d46d491

Browse files
committed
Fix Dockerfile
1 parent 49194ae commit d46d491

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

{{cookiecutter.project_slug}}/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ COPY poetry.lock .
1414
RUN poetry install --no-root
1515

1616
COPY .pre-commit-config.yaml .
17-
COPY .flake8 .
1817
COPY README.md .
1918
COPY features features
2019
COPY {{cookiecutter.package_name}} {{cookiecutter.package_name}}
@@ -24,8 +23,10 @@ RUN poetry install
2423

2524
ARG TESTBUILD=True
2625
ENV TESTBUILD=$TESTBUILD
26+
RUN if [ "$TESTBUILD" = 'True' ]; then poe lint; fi
2727
RUN if [ "$TESTBUILD" = 'True' ]; then poe test; fi
2828

29+
2930
RUN poetry build --format=wheel
3031
RUN poetry export --only main -f requirements.txt --without-hashes --output requirements.txt
3132

0 commit comments

Comments
 (0)