web frontend for git (tangled's grandpa)
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

contrib: docker support (#20)

authored by

Gil Poiares-Oliveira and committed by
GitHub
c90b2b51 22cf7a4a

+40
+25
contrib/Dockerfile
··· 1 + FROM golang:1.19-alpine AS builder 2 + 3 + WORKDIR /app 4 + 5 + COPY . ./ 6 + 7 + RUN apk add gcc musl-dev libc-dev 8 + 9 + RUN go mod download 10 + RUN go mod verify 11 + RUN go build -o legit 12 + 13 + FROM alpine:latest 14 + 15 + WORKDIR /app 16 + 17 + COPY static ./static 18 + COPY templates ./templates 19 + COPY config.yaml ./ 20 + COPY --from=builder /app/legit ./ 21 + 22 + EXPOSE 5555 23 + 24 + CMD ["./legit"] 25 +
+15
contrib/docker-compose.yml
··· 1 + version: "3" 2 + services: 3 + legit: 4 + container_name: legit 5 + build: 6 + context: ../ 7 + dockerfile: ../contrib/Dockerfile 8 + restart: unless-stopped 9 + ports: 10 + - "5555:5555" 11 + volumes: 12 + - /var/www/git:/var/www/git 13 + - ../config.yaml:/app/config.yaml 14 + - ../static:/app/static 15 + - ../templates:/app/templates