Sign inSign up

devangjani/gogs

By devangjani

•Updated 11 months ago

Docker image for Gogs with predefined configuration

Image
Security
Languages & frameworks
Integration & delivery
0

156

devangjani/gogs repository overview

⁠Gogs Docker Image

Custom Docker image for Gogs (self-hosted Git service) with optimized Dockerfile, reduced layers, and improved security.

⁠Quick Start

⁠Pull the Image
docker pull devangjani/gogs:v0.1

Note: Please use --platform linux/amd64 if you get an error below for the pull command

no matching manifest for linux/arm64/v8 in the manifest list entries

⁠Run the Container
docker run -d \
  --name gogs \
  -p 3100:3000 \
  -p 10022:22 \
  devangjani/gogs:v0.1
⁠Access Gogs

Open your browser and navigate to: http://localhost:3100

⁠Ports

PortProtocolPurpose
3100TCPHTTP web interface (mapped from container port 3000)
10022TCPSSH for Git operations (mapped from container port 22)

⁠Features

✅ Optimized Dockerfile — Reduced layers, faster builds
✅ Security — Runs as non-root git user
✅ Lightweight — Minimal image footprint

⁠Dockerfile Highlights

  • Single RUN instruction — Combines all setup commands into one layer
  • COPY --chown — Sets ownership at copy time (no extra layer)
  • USER git — Runs as non-root user for security

⁠Documentation

⁠License

See Gogs License⁠


Maintained by: devangjani

Tag summary

Content type

Image

Digest

sha256:e3d91d834…

Size

52.9 MB

Last updated

11 months ago

docker pull devangjani/gogs:v0.1