diff --git a/Dockerfile b/Dockerfile index 37e108d..2e4eefc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,31 +2,17 @@ FROM python:3.9-alpine ENV PYTHONUNBUFFERED 1 -WORKDIR "/app" - -RUN set -ex; \ - pip3 install \ - --no-cache-dir --no-color --disable-pip-version-check --no-python-version-warning \ - pipenv \ - ; - -COPY Pipfile Pipfile.lock ./ - RUN set -ex; \ # install prerequisites apk add --no-cache \ g++ \ jpeg-dev \ zlib-dev \ - ; \ - # build/install local packages - pipenv install --deploy; \ - pipenv --clear; \ - # remove build-only prerequisites - apk del --no-cache \ - g++ \ ; -COPY . . +COPY . /usr/src/fftcgtool -ENTRYPOINT ["pipenv", "run", "./fftcgtool.py"] +RUN set -ex; \ + pip3 --use-feature=in-tree-build install /usr/src/fftcgtool + +ENTRYPOINT ["fftcgtool"] diff --git a/setup.py b/setup.py index 151af10..d8e8560 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ -from setuptools import setup +from setuptools import setup, find_packages setup( name="fftcgtool", version="0.2", + packages=find_packages(), author="LDericher", author_email="ldericher@gmx.de", setup_requires="setuptools-pipfile",