This is a simple Dockerfile to serve GitWeb.
Clone this repository using git clone
$ https://github.com/Pick1a1username/gitweb_dockerfile.git
Move to the directory where the repository is cloned, and build a Docker Image.
$ cd gitweb_dockerfile
$ docker build -t gitweb:0.1 .
$ docker image ls
Create a data directory, where repositories will exist.
Of course, you can ignore this step if you want to use directories already exist containing repositories.
$ mkdir repos
Run the app and browse to http://localhost:8000/gitweb
.
Note that the data directory should be mounted to /repos
in the container.
$ docker run -it --rm -v <a data directory created above>:/repos -p 8000:80 -p 2222:22 gitweb:0.2
- GitWeb in this repository has no access restriction. If you want to use this in public, consider to use
.htaccess
.
Any suggestions are welcome!
This project is licensed under the MIT License - see the LICENSE.md file for details