docker-base is a base image for a multi-container Docker web project. It will contain all the packages required for a normal web server. It was designed with django in mind and with Polymer for its frontend however it can easily be modified for any web application.
e.g.
mkdir appe.g.
cd app
mkdir requirements
touch requirements/base.txt requirements/dev.text requirements/prod.txttouch docker-entrypoint.shdocker-entrypoint.sh should contain any relevant commands, inititalisation required for a successful run of this new container. Please see Dockerfile best practices for more information.
e.g.
FROM jtarball/docker-base:latest
MAINTAINER James Tarball <james.tarball@gmail.com>
ENV ENV_TYPE dev
ENV APP_DIR /app
EXPOSE 8000
CMD ["app"]This Dockerfile MUST include the following:
- ENV_TYPE
- environment type for requirements install so in this example can only be ('base', 'dev', 'prod')
- APP_DIR
- application directory
e.g.
docker-compose build
docker-compose up
View license information for the software contained in this image.
Any feedback or comments would be greatly appreciated: james.tarball@gmail.com
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You can also reach me by email. I would be happy to help james.tarball@gmail.com