Skip to content

JTarball/docker-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodesource/node

Circle CI

Supported tags and respective Dockerfile links

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

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: james.tarball@gmail.com

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 james.tarball@gmail.com

About

This is a base Docker Container suitable for web applications

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages