Dockerfile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. FROM golang:alpine AS binarybuilder
  2. # Install build deps
  3. RUN apk --no-cache --no-progress add --virtual build-deps build-base git linux-pam-dev
  4. WORKDIR /go/src/github.com/gogs/gogs
  5. COPY . .
  6. RUN make build TAGS="sqlite cert pam"
  7. FROM alpine:latest
  8. # Install system utils & Gogs runtime dependencies
  9. ADD https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 /usr/sbin/gosu
  10. RUN chmod +x /usr/sbin/gosu \
  11. && echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
  12. && apk --no-cache --no-progress add \
  13. bash \
  14. ca-certificates \
  15. curl \
  16. git \
  17. linux-pam \
  18. openssh \
  19. s6 \
  20. shadow \
  21. socat \
  22. tzdata
  23. ENV GOGS_CUSTOM /data/gogs
  24. # Configure LibC Name Service
  25. COPY docker/nsswitch.conf /etc/nsswitch.conf
  26. WORKDIR /app/gogs
  27. COPY docker ./docker
  28. COPY templates ./templates
  29. COPY public ./public
  30. COPY --from=binarybuilder /go/src/github.com/gogs/gogs/gogs .
  31. RUN ./docker/finalize.sh
  32. # Configure Docker Container
  33. VOLUME ["/data"]
  34. EXPOSE 22 3000
  35. ENTRYPOINT ["/app/gogs/docker/start.sh"]
  36. CMD ["/bin/s6-svscan", "/app/gogs/docker/s6/"]
PANIC: session(release): write data/sessions/f/a/fa2caf36cac0e341: no space left on device

PANIC

session(release): write data/sessions/f/a/fa2caf36cac0e341: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)