Skip to content

Latest commit

 

History

History
67 lines (36 loc) · 1.27 KB

README.md

File metadata and controls

67 lines (36 loc) · 1.27 KB

GitWeb Dockerfile

This is a simple Dockerfile to serve GitWeb.

Getting Started

Clone the Repository

Clone this repository using git clone

$ https://github.com/Pick1a1username/gitweb_dockerfile.git

Build a Docker Image

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

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

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

Notes

  • GitWeb in this repository has no access restriction. If you want to use this in public, consider to use .htaccess.

References

Contributing

Any suggestions are welcome!

License

This project is licensed under the MIT License - see the LICENSE.md file for details