Skip to content

Commit

Permalink
Merge pull request #112 from icgood/fix-docker
Browse files Browse the repository at this point in the history
Install requirements-all.txt in Dockerfile
  • Loading branch information
icgood committed May 9, 2021
2 parents cdb1efa + 1824cfc commit e9a1945
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
7 changes: 4 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM python:3.9-alpine

WORKDIR /pymap
COPY . .

RUN pip install -U pip wheel setuptools typing-extensions

ARG install_arg="pymap[redis,admin,macaroon,sieve,optional]"
ARG install_source=""
RUN apk --update add --virtual build-dependencies \
build-base python3-dev libffi-dev \
&& pip install "${install_arg}${install_source}" \
&& pip install -r requirements-all.txt \
&& apk del build-dependencies

EXPOSE 143 4190 50051
Expand Down
5 changes: 0 additions & 5 deletions docker/hooks/build

This file was deleted.

1 change: 1 addition & 0 deletions requirements-all.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e '.[redis,admin,macaroon,sieve,swim,optional]'
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pytest-asyncio
pytest-cov
rope

-e '.[redis,admin,macaroon,sieve,swim,optional]'
-r requirements-all.txt
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
license = f.read()

setup(name='pymap',
version='0.24.3',
version='0.24.4',
author='Ian Good',
author_email='ian@icgood.net',
description='Lightweight, asynchronous IMAP serving in Python.',
Expand Down

0 comments on commit e9a1945

Please sign in to comment.