Commit Graph

3 Commits

Author SHA1 Message Date
frenchvandal
2ba7217900
Dockerfile update (#644)
- Updated images with newer versions, except for Node: the js stuff will not compile with a version > 10
- Removed python3-dev and sqlite3 in step 2, they are not needed
- Added flask to pip, cf. issue #621
- Some small improvements here and there like a good practice for gunicorn use in Docker cf. https://pythonspeed.com/articles/gunicorn-in-docker/
2020-04-25 16:51:49 +00:00
Vincent Bernat
9b911f3257 docker: install cffi inside virtualenv
`python setup.py install` installs it outside the virtualenv (because
it's in `setup_requires`?), then reuse it as is when installing the
dependencies. On the final container, cffi is therefore missing.
2018-04-26 08:32:57 +02:00
Vincent Bernat
2b7c17a361 Provide a multi-staged Dockerfile
Many of the Docker images on hub.docker.com are outdated. The one
specified in the documentation doesn't exist anymore. We provide a
decent Dockerfile to build our own Docker image.

This uses a multi-stage build to avoid polluting the final image with
the intermediate artifacts. The final image is 155 MB. It should be
possible to squeeze it even more by using Alpine Linux for the last
two parts instead of Stretch.

The service is using gunicorn. The user is expected to complete the
installation with a reverse proxy configuration.
2018-04-16 22:09:28 +02:00