Dockerfile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. FROM arm32v7/ubuntu:18.04
  2. ADD resources/gogs_0.12.3_linux_armv7.tar.gz \
  3. /app
  4. ADD resources/start.sh \
  5. /
  6. ENV GOGS_CUSTOM /data/gogs
  7. ENV DEBIAN_FRONTEND=noninteractive
  8. RUN addgroup git \
  9. && adduser --disabled-password \
  10. --gecos "" \
  11. --home "/app/gogs" \
  12. --ingroup "git" \
  13. --no-create-home \
  14. git \
  15. && mkdir /data \
  16. && chown -R git:git /app /data \
  17. && ln -snf "/usr/share/zoneinfo/${TZ}" /etc/localtime \
  18. && echo "${TZ}" >/etc/timezone \
  19. && apt update \
  20. && apt --yes install \
  21. bash \
  22. ca-certificates \
  23. curl \
  24. git \
  25. less \
  26. libcap2-bin \
  27. musl-tools \
  28. rsync \
  29. socat \
  30. sqlite \
  31. tzdata \
  32. vim \
  33. && chmod 755 /start.sh \
  34. && echo "export GOGS_CUSTOM=${GOGS_CUSTOM}" >> /etc/profile
  35. VOLUME ["/data", "/backup"]
  36. ENTRYPOINT /start.sh