remove Dockerfile

- fixes #1119
This commit is contained in:
Casper da Costa-Luis 2021-01-25 14:51:28 +00:00
parent ca23ad4dd5
commit a774e3ff8d
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
4 changed files with 6 additions and 5 deletions

View File

@ -132,7 +132,7 @@ jobs:
run: |
sudo apt-get install -yqq pandoc
pip install .[dev]
make build .dockerignore snapcraft.yaml
make build .dockerignore Dockerfile snapcraft.yaml
- id: dist
uses: casperdcl/deploy-pypi@v2
with:

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ __pycache__/
/snapcraft.yaml
/tqdm_*.snap
/.dockerignore
/Dockerfile
# Unit test / coverage reports
/.tox/

View File

@ -1,4 +0,0 @@
FROM python:3.7-alpine
COPY dist/*.whl .
RUN pip install -U $(ls ./*.whl) && rm ./*.whl
ENTRYPOINT ["tqdm"]

View File

@ -107,6 +107,9 @@ snapcraft.yaml: .meta/mksnap.py
.dockerignore:
@+python -c "fd=open('.dockerignore', 'w'); fd.write('*\n!dist/*.whl\n')"
Dockerfile:
@+python -c 'fd=open("Dockerfile", "w"); fd.write("FROM python:3.8-alpine\nCOPY dist/*.whl .\nRUN pip install -U $$(ls ./*.whl) && rm ./*.whl\nENTRYPOINT [\"tqdm\"]\n")'
distclean:
@+make coverclean
@+make prebuildclean
@ -167,6 +170,7 @@ snap:
docker:
@make build
@make .dockerignore
@make Dockerfile
docker build . -t tqdm/tqdm
docker tag tqdm/tqdm:latest tqdm/tqdm:$(shell docker run -i --rm tqdm/tqdm -v)
none: