Sign inSign up

jtarball/docker-base

By jtarball

•Updated about 10 years ago

'docker-base' is a base image for any web application e.g. django powered website

Image
1

1.9K

jtarball/docker-base repository overview

nodesource/node

Circle CI

⁠What is docker-base?

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.

⁠How to use this image

⁠create a new folder

e.g.

mkdir app
⁠create 'requirements' directory

e.g.

cd app
mkdir requirements
touch requirements/base.txt requirements/dev.text requirements/prod.txt
⁠create 'docker-entrypoint.sh'
touch docker-entrypoint.sh

docker-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.

⁠create a new Dockerfile

e.g.

FROM jtarball/docker-base:latest
MAINTAINER James Tarball <[email protected]>

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
⁠build & run using docker-compose

e.g.

docker-compose build
docker-compose up 

⁠License

View license information⁠ for the software contained in this image.

⁠User Feedback

Any feedback or comments would be greatly appreciated: [email protected]⁠

⁠Issues

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 [email protected]⁠

Tag summary

Content type

Image

Digest

sha256:3f38167a0…

Size

293.8 MB

Last updated

about 10 years ago

docker pull jtarball/docker-base